47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using AutoMapper;
|
|
using LMS.Repository.DB;
|
|
using LMS.Repository.DTO;
|
|
using LMS.Repository.DTO.OptionDto;
|
|
using LMS.Repository.DTO.PromptDto;
|
|
using LMS.Repository.DTO.PromptTypeDto;
|
|
using LMS.Repository.DTO.UserDto;
|
|
using LMS.Repository.Machine;
|
|
using LMS.Repository.Models.DB;
|
|
using LMS.Repository.Promission;
|
|
using LMS.Repository.PromptModel;
|
|
using static LMS.Repository.DTO.MachineDto;
|
|
|
|
namespace LMS.service.Configuration
|
|
{
|
|
public class AutoMapperConfig : Profile
|
|
{
|
|
public AutoMapperConfig()
|
|
{
|
|
CreateMap<Machine, MachineStatusResponse>();
|
|
|
|
CreateMap<Machine, MachineDetailDto>();
|
|
|
|
CreateMap<MachineModel, Machine>();
|
|
|
|
CreateMap<PermissionTypeModel, PermissionType>();
|
|
|
|
CreateMap<PermissionModel, Permission>();
|
|
|
|
CreateMap<User, UserDto>();
|
|
|
|
CreateMap<User, UserBaseDto>();
|
|
|
|
CreateMap<Options, OptionsDto>();
|
|
|
|
CreateMap<PromptType, PromptTypeDto>();
|
|
|
|
CreateMap<PromptType, PromptTypeBasic>();
|
|
|
|
CreateMap<Prompt, PromptDto>();
|
|
|
|
CreateMap<ModifyPromptModel, Prompt>();
|
|
|
|
}
|
|
}
|
|
}
|