Note Onion - 2 - Application - NoteMapping

Here is the source code for NoteMapping.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
16
using AutoMapper;
using Note.Application.DTOs;
using Note.Domain.Entities;

namespace Note.API.Note
{
public class NoteMapping : Profile
{
public NoteMapping()
{
CreateMap<NoteDto, NoteEntity>()
.ReverseMap()
;
}
}
}