Added AutoMapper for User related objects
This commit is contained in:
14
YABA.API/Settings/AutoMapperProfile.cs
Normal file
14
YABA.API/Settings/AutoMapperProfile.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using AutoMapper;
|
||||
using YABA.API.ViewModels;
|
||||
using YABA.Common.DTOs;
|
||||
|
||||
namespace YABA.API.Settings
|
||||
{
|
||||
public class AutoMapperProfile : Profile
|
||||
{
|
||||
public AutoMapperProfile()
|
||||
{
|
||||
CreateMap<UserDTO, UserResponse>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user