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