Exemplo n.º 1
0
        // GET: /<controller>/
        public async Task <ActionResult> Index(PagedResultRequestDto input)
        {
            IReadOnlyList <DepartmentInstructorReadDto> departmentInstructorList = (await _departmentInstructorAppService.GetAll(new PagedResultRequestDto {
            })).Items;
            IReadOnlyList <DepartmentReadDto> departmentList = (await _departmentAppService.GetAll(new PagedResultRequestDto {
            })).Items;
            IReadOnlyList <InstructorReadDto> instructorList = (await _instructorAppService.GetAll(new PagedResultRequestDto {
            })).Items;
            var model = new Index(departmentInstructorList, departmentList, instructorList)
            {
            };

            return(View(model));
        }
Exemplo n.º 2
0
        // GET: /<controller>/
        public async Task <ActionResult> Index(PagedResultRequestDto input)
        {
            IReadOnlyList <InstructorCourseReadDto> instructorCourseList = (await _instructorCourseAppService.GetAll(new PagedResultRequestDto {
            })).Items;
            IReadOnlyList <InstructorReadDto> instructorList             = (await _instructorAppService.GetAll(new PagedResultRequestDto {
            })).Items;
            IReadOnlyList <CourseReadDto> courseList = (await _courseAppService.GetAll(new PagedResultRequestDto {
            })).Items;
            var model = new Index(instructorCourseList, instructorList, courseList)
            {
            };

            return(View(model));
        }
Exemplo n.º 3
0
        public ActionResult ListAll()
        {
            ViewBag.Control = "Index";
            ViewBag.Title   = "Lista de Todos os Instrutores";

            return(View("List", instructorAppService.GetAll()));
        }