-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProfile.cs
39 lines (29 loc) · 1.12 KB
/
Profile.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using AutoMapper;
using FAKA.Server.Models;
using FAKA.Server.Models.Dtos;
using Microsoft.AspNetCore.Identity;
namespace FAKA.Server;
public class OrganizationProfile : Profile
{
public OrganizationProfile()
{
CreateMap<Order, OrderOutDto>();
CreateMap<OrderInDto, Order>();
CreateMap<OrderSubmitDto, Order>();
CreateMap<Product, ProductOutDto>();
CreateMap<ProductInDto, Product>();
CreateMap<Key, KeyOutDto>();
CreateMap<KeyInDto, Key>();
CreateMap<AssignedKey, AssignedKeyOutDto>();
CreateMap<ProductGroupInDto, ProductGroup>();
CreateMap<ProductGroup, ProductGroupOutDto>();
CreateMap<TransactionInDto, Transaction>();
CreateMap<Gateway, GatewayOutDto>();
CreateMap<GatewayInDto, Gateway>();
CreateMap<Announcement, AnnouncementOutDto>();
CreateMap<AnnouncementInDto, Announcement>();
CreateMap<ApplicationUser, UserOutDto>();
CreateMap<UserInDto, ApplicationUser>();
// Use CreateMap... Etc.. here (Profile methods are the same as configuration methods)
}
}