16 lines
340 B
C#
16 lines
340 B
C#
using AutoMapper;
|
|
using Lab3.Database.DTO;
|
|
using Lab3.Database.Models;
|
|
|
|
namespace Lab3.Database.MappingProfiles
|
|
{
|
|
public class StudentMappingProfile : Profile
|
|
{
|
|
public StudentMappingProfile()
|
|
{
|
|
_ = CreateMap<Student, StudentDTO>();
|
|
_ = CreateMap<StudentDTO, Student>();
|
|
}
|
|
}
|
|
}
|