Пример #1
0
        private void GetAllDepartment()
        {
            string result = String.Empty;


            IDepartmentBll    _IDepartmentBll = BllInstance.DepartmentBllInstance;
            List <Department> all             = _IDepartmentBll.GetAllDepartmentOrderName();

            foreach (Department item in all)
            {
                result += string.IsNullOrEmpty(result) ? item.Name : "\n" + item.Name;
            }

            Response.Write(result);
            Response.End();
        }