public void disableUnit()
        {
            DeleteUnit _del = new DeleteUnit("Disable");

            try
            {
                _del.UnitID = this.UnitID;
                _del.UpdateUnitStatus();
            }
            catch (Exception ex)
            {
                throw new Exception("BLL::DisablUnit::" + ex.Message);
            }
            finally
            {
                _del = null;
            }
        }
        public void enableUnit()
        {
            DeleteUnit _ena= new DeleteUnit("Enable");

            try
            {
                _ena.UnitID = this.UnitID;
                _ena.UpdateUnitStatus();
            }
            catch (Exception ex)
            {
                throw new Exception("BLL::EnableUnit::" + ex.Message);
            }
            finally
            {
                _ena = null;
            }
        }
 private void DeleteUnits()
 {
     DeleteUnit _unit = new DeleteUnit();
     try
     {
         _unit.UnitID = this.UnitID;
         _unit.DelUnit();
     }
     catch (Exception ex)
     {
         throw new Exception("ProcessUnitTypeNotQueries::DeleteUnits(): " + ex.Message);
     }
     finally
     {
         _unit = null;
     }
 }