public T ModelConvert(ViewContact model) { return(new T() { Id = model.Id, FirstName = model.FirstName, LastName = model.LastName, PhoneNumber = model.PhoneNumber }); }
public void UpdateContact(ViewContact contact) { IContact realContact = adapter.ModelConvert(contact); _dataBase.Update(realContact); }