public async Task <PartialViewResult> GetAllInstructor(int Id) { ModalPartialStudentModel <InstructorDto> modal = new ModalPartialStudentModel <InstructorDto>(); modal.CourseDto = await _courseApiService.GetById(ApiUrl + "api/Course/" + Id, Session["access_token"] as String); modal.EntityModal = await _ınstructorApiService.GetAllInstructor(ApiUrl + "api/Instructor", Session["access_token"] as String); return(PartialView("_ModalPartialAddInstructor", modal)); }
public async Task <PartialViewResult> GetAllStudent(int Id) { ModalPartialStudentModel <StudentDto> modal = new ModalPartialStudentModel <StudentDto>(); modal.CourseDto = await _courseApiService.GetById(ApiUrl + "api/Course/" + Id, Session["access_token"] as String); modal.EntityModal = await _studentApiService.GetAllAsync(ApiUrl + "api/Student", Session["access_token"] as String); return(PartialView("_ModalPartialAddStudent", modal)); }