Skip to content

Commit

Permalink
add Id to be able to block & delete a provider admin by id (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmyMi authored Mar 25, 2022
1 parent cc5a8b4 commit 19db306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OutOfSchool/OutOfSchool.WebApi/Models/ProviderAdminDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ namespace OutOfSchool.WebApi.Models
{
public class ProviderAdminDto
{
public string Id { get; set; }

public string FirstName { get; set; }

public string LastName { get; set; }
Expand Down
1 change: 1 addition & 0 deletions OutOfSchool/OutOfSchool.WebApi/Util/MappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public MappingProfile()
CreateMap<ShortUserDto, AdminDto>();

CreateMap<User, ProviderAdminDto>()
.ForMember(dest => dest.Id, opt => opt.MapFrom(c => c.Id))
.ForMember(dest => dest.FirstName, opt => opt.MapFrom(c => c.FirstName))
.ForMember(dest => dest.LastName, opt => opt.MapFrom(c => c.LastName))
.ForMember(dest => dest.MiddleName, opt => opt.MapFrom(c => c.MiddleName))
Expand Down

0 comments on commit 19db306

Please sign in to comment.