zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/AutoMapper/TenantsProfile.cs

20 lines
624 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
using AutoMapper;
using ZeroFramework.IdentityServer.API.IdentityStores;
using ZeroFramework.IdentityServer.API.Models.Tenants;
namespace ZeroFramework.IdentityServer.API.AutoMapper
{
public class TenantsProfile : Profile
{
public TenantsProfile()
{
CreateMap<IdentityTenant, TenantGetResponseModel>();
CreateMap<TenantCreateRequestModel, IdentityTenant>();
CreateMap<TenantUpdateRequestModel, IdentityTenant>();
CreateMap<TenantClaimModel, IdentityTenantClaim>();
CreateMap<IdentityTenantClaim, TenantClaimModel>();
}
}
}