Added Main
This commit is contained in:
17
noteApi/Mappers/NoteMapper.cs
Normal file
17
noteApi/Mappers/NoteMapper.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using noteApi.Dtos.Note;
|
||||
using noteApi.Models;
|
||||
|
||||
namespace noteApi.Mappers
|
||||
{
|
||||
public static class NoteMapper
|
||||
{
|
||||
public static Note ToNoteFromCreateDto(this CreateNoteDto noteDto)
|
||||
{
|
||||
return new Note
|
||||
{
|
||||
Title = noteDto.Title,
|
||||
Content = noteDto.Content
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user