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

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