HBM.GeneralManagement.Department.Delete C# (CSharp) Method

Delete() public method

public Delete ( ) : bool
return bool
        public bool Delete()
        {
            bool result = false;
            try
            {
                if (this.DepartmentId > 0)
                {
                    result = (new DepartmentsDAO()).Delete(this);
                }
            }
            catch (System.Exception ex)
            {
                result = false;
                throw ex;
            }
            return result;
        }