Example #1
0
 public City CreateCity(City oCity)
 {
     if (oCity != null && oCity.ID == 0 && !String.IsNullOrEmpty(oCity.Name))
     {
         return this.Data.Insert<City>(oCity);
     }
     return null;
 }
Example #2
0
 public City UpdateCity(City oCity)
 {
     if (oCity != null && oCity.ID > 0 && !String.IsNullOrEmpty(oCity.Name))
     {
         return this.Data.Update<City>(oCity);
     }
     return null;
 }