Note Onion - 2 - Application - NoteTypeMapping

Here is the source code for NoteTypeMapping.cs file it is placed in the Mapping directory of the Note.Application project.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using AutoMapper;
using Note.Application.DTOs;
using Note.Domain.Entities;

namespace Note.API.NoteType
{
public class NoteTypeMapping : Profile
{
public NoteTypeMapping()
{
CreateMap<NoteTypeDto, NoteTypeEntity>()
.ReverseMap();
}
}
}