Skip to content

Commit aae8368

Browse files
committed
Automapper
ApplicationUser to User profile model
1 parent d37a313 commit aae8368

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Supermarket/Mapping/ModelToResourceProfile.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using AutoMapper;
22
using Supermarket.Entites.Models;
33
using Supermarket.Extensions;
4+
using Supermarket.Identity.Models;
45
using Supermarket.Resources;
56

67
namespace Supermarket.Mapping
@@ -9,6 +10,8 @@ public class ModelToResourceProfile : Profile
910
{
1011
public ModelToResourceProfile()
1112
{
13+
CreateMap<ApplicationUser, UserProfileResource>();
14+
1215
CreateMap<Category, CategoryResource>();
1316

1417
CreateMap<Product, ProductResource>()

0 commit comments

Comments
 (0)