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