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