Exemplo n.º 1
0
 public override PersonReadViewModel ConvertToResponse(PersonDomain entity)
 {
     return(new PersonReadViewModel(entity.Id, entity.Name));
 }
Exemplo n.º 2
0
 public PersonReadViewModel ConvertToLookupResponse(PersonDomain entity)
 {
     return(new PersonReadViewModel(entity.Name));
 }
Exemplo n.º 3
0
        protected override PersonDomain Convert(RegisterNewPersonCommand command)
        {
            var entity = new PersonDomain(command.Name);

            return(entity);
        }