예제 #1
0
 public PersonReadViewModel ConvertToLookupResponse(PersonDomain entity)
 {
     return(new PersonReadViewModel(entity.Name));
 }
예제 #2
0
 public override PersonReadViewModel ConvertToPaginatedResponse(PersonDomain entity)
 {
     return(new PersonReadViewModel(entity.Id, entity.Name));
 }
예제 #3
0
 public override async Task <PersonReadViewModel> ConvertToResponse(PersonDomain entity)
 {
     return(await Task.FromResult(new PersonReadViewModel(entity.Id, entity.Name)));
 }
예제 #4
0
        protected override async Task <PersonDomain> Convert(RegisterNewPersonCommand command)
        {
            var entity = new PersonDomain(command.Name);

            return(await Task.FromResult(entity));
        }