Most services are implemented as command/queries

Code cleanup
This commit is contained in:
Geoffroy BONNEVILLE
2020-03-26 19:04:51 +01:00
parent 903e7649e4
commit 22072bb2fe
46 changed files with 567 additions and 390 deletions

View File

@@ -0,0 +1,18 @@
using AutoMapper;
using ModernKeePass.Application.Common.Mappings;
using ModernKeePass.Domain.Dtos;
namespace ModernKeePass.Application.Recent.Models
{
public class RecentVm: IMapFrom<FileInfo>
{
public string Name { get; set; }
public string Path { get; set; }
public void Mapping(Profile profile)
{
profile.CreateMap<FileInfo, RecentVm>()
.ForMember(d => d.Name, opts => opts.MapFrom(s => s.Name))
.ForMember(d => d.Path, opts => opts.MapFrom(s => s.Path));
}
}
}