예제 #1
0
        /// <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;
            }
        }
예제 #2
0
		private void detach_ADMDivisions(ADMDivision entity)
		{
			this.SendPropertyChanging();
			entity.ADMCountry = null;
		}
예제 #3
0
 partial void DeleteADMDivision(ADMDivision instance);
예제 #4
0
 partial void UpdateADMDivision(ADMDivision instance);
예제 #5
0
 partial void InsertADMDivision(ADMDivision instance);