Initial commit - MetaCourse API

This commit is contained in:
2026-05-28 13:45:03 +00:00
commit 0f97b7d85c
79 changed files with 3334 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
using AutoMapper;
using MetaCourse.Api.DTOs.Users;
using MetaCourse.Api.Entities;
namespace MetaCourse.Api.Mappings;
public class UserProfile : Profile
{
public UserProfile()
{
CreateMap<User, GetUserDto>();
CreateMap<RegisterUserDto, User>()
.ForMember(dest => dest.PasswordHash, opt => opt.Ignore())
.ForMember(dest => dest.Id, opt => opt.Ignore())
.ForMember(dest => dest.CreatedAt, opt => opt.Ignore());
}
}