chore: deleted all the stuff we don't need here

This commit is contained in:
2025-09-20 23:08:08 +03:00
parent 8ea18f1096
commit 44881818a2
67 changed files with 1 additions and 3139 deletions

View File

@@ -1,7 +1,4 @@
using AutoMapper;
using GamificationService.Models.Database;
using GamificationService.Models.DTO;
namespace GamificationService.Mapper;
@@ -9,43 +6,5 @@ public class MappingProfile : Profile
{
public MappingProfile()
{
#region UserProfileMapping
CreateMap<UserProfile, UserProfileDTO>()
.ForMember(x => x.Id, opt => opt.MapFrom(src => src.Id))
.ForMember(x => x.UserId, opt => opt.MapFrom(src => src.UserId))
.ForMember(x => x.Name, opt => opt.MapFrom(src => src.Name))
.ForMember(x => x.Surname, opt => opt.MapFrom(src => src.Surname))
.ForMember(x => x.Patronymic, opt => opt.MapFrom(src => src.Patronymic))
.ForMember(x => x.Birthdate, opt => opt.MapFrom(src => src.Birthdate))
.ForMember(x => x.Gender, opt => opt.MapFrom(src => src.Gender))
.ForMember(x => x.ContactEmail, opt => opt.MapFrom(src => src.ContactEmail))
.ForMember(x => x.ContactPhone, opt => opt.MapFrom(src => src.ContactPhone))
.ForMember(x => x.ProfilePicture, opt => opt.MapFrom(src => src.ProfilePicture));
CreateMap<UserProfileDTO, UserProfile>()
.ForMember(x => x.Id, opt => opt.MapFrom(src => src.Id))
.ForMember(x => x.UserId, opt => opt.MapFrom(src => src.UserId))
.ForMember(x => x.Name, opt => opt.MapFrom(src => src.Name))
.ForMember(x => x.Surname, opt => opt.MapFrom(src => src.Surname))
.ForMember(x => x.Patronymic, opt => opt.MapFrom(src => src.Patronymic))
.ForMember(x => x.Birthdate, opt => opt.MapFrom(src => src.Birthdate))
.ForMember(x => x.Gender, opt => opt.MapFrom(src => src.Gender))
.ForMember(x => x.ContactEmail, opt => opt.MapFrom(src => src.ContactEmail))
.ForMember(x => x.ContactPhone, opt => opt.MapFrom(src => src.ContactPhone))
.ForMember(x => x.ProfilePicture, opt => opt.MapFrom(src => src.ProfilePicture));
CreateMap<UserProfileCreateDTO, UserProfile>()
.ForMember(x => x.Name, opt => opt.MapFrom(src => src.Name))
.ForMember(x => x.Surname, opt => opt.MapFrom(src => src.Surname))
.ForMember(x => x.Patronymic, opt => opt.MapFrom(src => src.Patronymic))
.ForMember(x => x.Birthdate, opt => opt.MapFrom(src => src.Birthdate))
.ForMember(x => x.Gender, opt => opt.MapFrom(src => src.Gender))
.ForMember(x => x.ContactEmail, opt => opt.MapFrom(src => src.ContactEmail))
.ForMember(x => x.ContactPhone, opt => opt.MapFrom(src => src.ContactPhone))
.ForMember(x => x.ProfilePicture, opt => opt.MapFrom(src => src.ProfilePicture));
#endregion
}
}