Add Exception middleware
This commit is contained in:
@@ -8,7 +8,8 @@ namespace Diary.Component.Entries.Service
|
||||
public EntryMappings()
|
||||
{
|
||||
CreateMap<CreateEntryResource, Entry>();
|
||||
CreateMap<Entry, EntryResource>();
|
||||
CreateMap<Entry, EntryResource>()
|
||||
.ForMember(dest => dest.Date, opt => opt.MapFrom(src => src.Date.Date));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user