erp-platform/api/src/Kurs.Platform.Application/Identity/IdentityAutoMapperProfile.cs
Sedat ÖZTÜRK 8cc8ed07f9 Düzenleme
2025-08-11 09:34:44 +03:00

20 lines
670 B
C#

using AutoMapper;
using Kurs.Platform.Identity.Dto;
using Kurs.Platform.OrganizationUnits;
using Kurs.Platform.Tenants;
using Volo.Abp.Identity;
using Volo.Abp.TenantManagement;
namespace Kurs.Platform.Identity;
public class IdentityAutoMapperProfile : Profile
{
public IdentityAutoMapperProfile()
{
CreateMap<IdentityUser, UserInfoViewModel>();
CreateMap<OrganizationUnit, OrganizationUnitDto>();
CreateMap<CreateUpdateOrganizationUnitDto, OrganizationUnit>();
CreateMap<Tenant, CustomTenantDto>();
CreateMap<IdentityRoleDto, AssignedRoleViewModel>().ForMember(dest => dest.IsAssigned, opt => opt.Ignore());
}
}