public DataTable GetById(int?id)
 {
     objDepartmentDAL = new Departments_DAL(objDepartmentproperty);
     return(objDepartmentDAL.SelectById());
 }
 public bool DeleteDepartment()
 {
     objDepartmentDAL = new Departments_DAL(objDepartmentproperty);
     return(objDepartmentDAL.Delete());
 }
 public bool Insert()
 {
     objDepartmentDAL = new Departments_DAL(objDepartmentproperty);
     return(objDepartmentDAL.Insert());
 }
 public bool Update()
 {
     objDepartmentDAL = new Departments_DAL(objDepartmentproperty);
     return(objDepartmentDAL.Update());
 }
 public DataTable ViewAll()
 {
     objDepartmentDAL = new Departments_DAL(objDepartmentproperty);
     return(objDepartmentDAL.SelectAll());
 }