Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Role = UserRole.IsoUser;
            BALDepartment department = new BALDepartment();

            depts = department.GetDepartment(1);
        }
Пример #2
0
        //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);
        }