// 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)); }
// 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)); }
public ActionResult ListAll() { ViewBag.Control = "Index"; ViewBag.Title = "Lista de Todos os Instrutores"; return(View("List", instructorAppService.GetAll())); }