Esempio n. 1
0
 public static About ToEntity(this AboutContract aboutContract)
 {
     return(new About
     {
         Id = aboutContract.Id,
         Name = aboutContract.Name,
         Email = aboutContract.Email,
         Phone = aboutContract.Phone,
         Adress = aboutContract.Adress,
         BirthDate = aboutContract.BirthDate,
         Nationality = aboutContract.Nationality,
     });
 }
Esempio n. 2
0
 public void Post(AboutContract aboutContract)
 {
     _uow.AboutRepository.CreateOrUpdate(aboutContract.ToEntity());
 }