public Phone CreatePhone(Phone oPhone) { if (oPhone != null && oPhone.ID == 0 && !String.IsNullOrEmpty(oPhone.PhoneChar)) { return this.Data.Insert<Phone>(oPhone); } return null; }
public Phone UpdatePhone(Phone oPhone) { if (oPhone != null && oPhone.ID > 0 && !String.IsNullOrEmpty(oPhone.PhoneChar)) { return this.Data.Update<Phone>(oPhone); } return null; }