Ejemplo n.º 1
0
        public async Task <ActionResult> SelectTrialStudents(SortingEnum sortState = SortingEnum.LastNameAsc)
        {
            var students = await _studentService.SelectTrialStudentsAsync(sortState);

            ViewData["Branches"] = await _branchService.GetAllBranch();

            return(View(students));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Index()
        {
            var branchs = await _branchService.GetAllBranch();

            return(View(branchs));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> GetAllBranches()
        {
            var branches = await _branchService.GetAllBranch();

            return(PartialView("_ViewsListBranches", branches));
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 查询所有机构信息
 /// </summary>
 /// <returns></returns>
 public static IList <Branch> GetAllBranch()
 {
     return(BranchService.GetAllBranch());
 }