Esempio n. 1
0
 public T ModelConvert(ViewContact model)
 {
     return(new T()
     {
         Id = model.Id,
         FirstName = model.FirstName,
         LastName = model.LastName,
         PhoneNumber = model.PhoneNumber
     });
 }
Esempio n. 2
0
        public void UpdateContact(ViewContact contact)
        {
            IContact realContact = adapter.ModelConvert(contact);

            _dataBase.Update(realContact);
        }