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, }); }
public void Post(AboutContract aboutContract) { _uow.AboutRepository.CreateOrUpdate(aboutContract.ToEntity()); }