Added Entry initial repo and services for a create action.
This commit is contained in:
14
Component/Entries/Service/EntryMappings.cs
Normal file
14
Component/Entries/Service/EntryMappings.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using AutoMapper;
|
||||
using Diary.Component.Entries.Repository;
|
||||
|
||||
namespace Diary.Component.Entries.Service
|
||||
{
|
||||
public class EntryMappings : Profile
|
||||
{
|
||||
public EntryMappings()
|
||||
{
|
||||
CreateMap<CreateEntryResource, Entry>();
|
||||
CreateMap<Entry, EntryResource>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user