You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
554 B

3 years ago
using AutoMapper;
using Identity.Api.Clean.Contracts.Inputs;
using Identity.Api.Clean.Contracts.Models;
using Identity.Api.Clean.Domain.Entites;
namespace Identity.Api.Clean.Contracts;
public class MappingProfile : Profile
{
public MappingProfile()
{
CreateMap<TenantCreateInput, Tenant>();
CreateMap<TenantUpdateInput, Tenant>();
CreateMap<Tenant, TenantModel>();
//IdentityRoleModel
CreateMap<IdentityRoleCreateInput, IdentityRole>();
CreateMap<IdentityRole, IdentityRoleModel>();
}
}