Example #1
0
 public County CreateCounty(County oCounty)
 {
     if (oCounty != null && oCounty.ID == 0 && !String.IsNullOrEmpty(oCounty.Name))
     {
         return this.Data.Insert<County>(oCounty);
     }
     return null;
 }
Example #2
0
 public County UpdateCounty(County oCounty)
 {
     if (oCounty != null && oCounty.ID > 0 && !String.IsNullOrEmpty(oCounty.Name))
     {
         return this.Data.Update<County>(oCounty);
     }
     return null;
 }