18 lines
361 B
C#
18 lines
361 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
}
|