public override PersonReadViewModel ConvertToResponse(PersonDomain entity)
 {
     return(new PersonReadViewModel(entity.Id, entity.Name));
 }
 public PersonReadViewModel ConvertToLookupResponse(PersonDomain entity)
 {
     return(new PersonReadViewModel(entity.Name));
 }
        protected override PersonDomain Convert(RegisterNewPersonCommand command)
        {
            var entity = new PersonDomain(command.Name);

            return(entity);
        }