aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Services/ExamTemplate.Services/Configurations/ServiceUserMappings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ExamTemplate/Services/ExamTemplate.Services/Configurations/ServiceUserMappings.cs')
-rw-r--r--ExamTemplate/Services/ExamTemplate.Services/Configurations/ServiceUserMappings.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ExamTemplate/Services/ExamTemplate.Services/Configurations/ServiceUserMappings.cs b/ExamTemplate/Services/ExamTemplate.Services/Configurations/ServiceUserMappings.cs
new file mode 100644
index 0000000..787b90f
--- /dev/null
+++ b/ExamTemplate/Services/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>();
+ }
+ }
+}