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