Example #1
0
        /// <summary>
        /// Method to save (add/edit) district object
        /// </summary>
        /// <param name="district"></param>
        /// <returns></returns>
        public bool SaveDistrict(ADMDistrict district)
        {
            try
            {
                district.ModifiedDate = System.DateTime.Now;

                if (district.DistrictID == 0)
                {
                    return _DistrictDAOLinq.Add(district);
                }
                else
                {
                    return _DistrictDAOLinq.Edit(district, true);
                }
            }
            catch (Exception ex)
            {
                return false;
            }
        }
Example #2
0
		private void detach_ADMDistricts(ADMDistrict entity)
		{
			this.SendPropertyChanging();
			entity.ADMDivision = null;
		}
Example #3
0
 partial void DeleteADMDistrict(ADMDistrict instance);
Example #4
0
 partial void UpdateADMDistrict(ADMDistrict instance);
Example #5
0
 partial void InsertADMDistrict(ADMDistrict instance);