mirror of https://github.com/abpframework/abp.git
12 changed files with 129 additions and 33 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,19 @@ |
|||
using AutoMapper; |
|||
using Volo.Abp.Identity.Web.Pages.Identity.Users; |
|||
|
|||
namespace Volo.Abp.Identity.Web.ObjectMappings |
|||
{ |
|||
public class AbpIdentityWebAutoMapperProfile : Profile |
|||
{ |
|||
public AbpIdentityWebAutoMapperProfile() |
|||
{ |
|||
CreateMap<IdentityUserDto, EditModalModel.UserInfoViewModel>(); |
|||
|
|||
CreateMap<EditModalModel.UserInfoViewModel, IdentityUserUpdateDto>() |
|||
.ForMember(dest => dest.RoleNames, opt => opt.Ignore()); |
|||
|
|||
CreateMap<IdentityRoleDto, EditModalModel.AssignedRoleViewModel>() |
|||
.ForMember(dest => dest.IsAssigned, opt => opt.Ignore()); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1 @@ |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
Loading…
Reference in new issue