protected void Page_Load(object sender, EventArgs e) { Role = UserRole.IsoUser; BALDepartment department = new BALDepartment(); depts = department.GetDepartment(1); }
//private void CreateNewDepartmentTemplate(string departmentName) //{ // DirectoryInfo dir = new System.IO.DirectoryInfo(HttpContext.Current.Server.MapPath("~/UploadTemplate/" + departmentName)); // if (!dir.Exists) // { // dir.Create(); // } //} public List <Department> GetDepartment() { List <Department> departments = new List <Department>(); BALDepartment balDepartment = new BALDepartment(); departments = balDepartment.GetDepartment(1); return(departments); }