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

17 lines
486 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.Roles;
namespace ZeroFramework.IdentityServer.API.AutoMapper
{
public class RolesProfile : Profile
{
public RolesProfile()
{
CreateMap<ApplicationRole, RoleGetResponseModel>();
CreateMap<RoleCreateRequestModel, ApplicationRole>();
CreateMap<RoleUpdateRequestModel, ApplicationRole>();
}
}
}