aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Services/Configurations/ServiceUserMappings.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-11 12:03:11 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-11 12:03:11 +0300
commit1691baf054b6695da35c9d29032d9b3934c1f979 (patch)
tree056e4db62f591acf4ce4ad259a7b7245e02ede4a /ExamTemplate/Services/Configurations/ServiceUserMappings.cs
parent3edb4619a64e26883b752427b179d04ec30adef7 (diff)
downloadit-kariera-exam-template-1691baf054b6695da35c9d29032d9b3934c1f979.tar
it-kariera-exam-template-1691baf054b6695da35c9d29032d9b3934c1f979.tar.gz
it-kariera-exam-template-1691baf054b6695da35c9d29032d9b3934c1f979.zip
Renamed mapping classes to have the name of their layer
Diffstat (limited to 'ExamTemplate/Services/Configurations/ServiceUserMappings.cs')
-rw-r--r--ExamTemplate/Services/Configurations/ServiceUserMappings.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ExamTemplate/Services/Configurations/ServiceUserMappings.cs b/ExamTemplate/Services/Configurations/ServiceUserMappings.cs
new file mode 100644
index 0000000..787b90f
--- /dev/null
+++ b/ExamTemplate/Services/Configurations/ServiceUserMappings.cs
@@ -0,0 +1,15 @@
+using AutoMapper;
+using ExamTemplate.Data.Models;
+using ExamTemplate.Services.Models.User;
+
+namespace ExamTemplate.Services.Configurations
+{
+ public class ServiceUserMappings : Profile
+ {
+ public ServiceUserMappings()
+ {
+ CreateMap<RegisterUserServiceModel, User>();
+ CreateMap<User, UserServiceModel>();
+ }
+ }
+}