Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using AutoMapper;
|
||||
using MetaCourse.Api.DTOs.UserCourses;
|
||||
using MetaCourse.Api.Entities;
|
||||
|
||||
namespace MetaCourse.Api.Mappings;
|
||||
|
||||
public class UserCourseProfile : Profile
|
||||
{
|
||||
public UserCourseProfile()
|
||||
{
|
||||
CreateMap<UserCourse, GetEnrollmentDto>()
|
||||
.ForMember(dest => dest.CourseTitle, opt => opt.MapFrom(src => src.Course.Title));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user