/// <summary> /// Method to save (add/edit) country object /// </summary> /// <param name="country"></param> /// <returns></returns> public bool SaveDivision(ADMDivision division) { try { division.ModifiedDate = System.DateTime.Now; if (division.DivisionID == 0) { return _DivisionDAOLinq.Add(division); } else { return _DivisionDAOLinq.Edit(division, true); } } catch (Exception ex) { return false; } }
private void detach_ADMDivisions(ADMDivision entity) { this.SendPropertyChanging(); entity.ADMCountry = null; }
partial void DeleteADMDivision(ADMDivision instance);
partial void UpdateADMDivision(ADMDivision instance);
partial void InsertADMDivision(ADMDivision instance);