blob: 541e16e0ef311b3606002456adb51b3165881eb0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using DevHive.Data.Models;
using AutoMapper;
using DevHive.Services.Models.Identity.User;
namespace DevHive.Services.Configurations.Mapping
{
public class UserMappings : Profile
{
public UserMappings()
{
CreateMap<UserServiceModel, User>();
CreateMap<RegisterServiceModel, User>();
CreateMap<UpdateUserServiceModel, User>();
CreateMap<FriendServiceModel, User>();
CreateMap<User, UserServiceModel>();
CreateMap<User, FriendServiceModel>();
}
}
}
|