Esempio n. 1
0
 public static Person mapModel(Person oldPerson, Person newPerson)
 {
     if (!PersonValidator.validatePerson(newPerson))
     {
         return(null);
     }
     oldPerson.IDPerson  = newPerson.IDPerson;
     oldPerson.Rol       = newPerson.Rol;
     oldPerson.Names     = newPerson.Names;
     oldPerson.LastNames = newPerson.LastNames;
     oldPerson.BirthDate = newPerson.BirthDate;
     oldPerson.Email     = newPerson.Email;
     oldPerson.Password  = newPerson.Password;
     return(oldPerson);
 }