// GET: Courses/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CourseDto courseModel = await _courseApiService.GetById(ApiUrl + "api/Course/" + id, Session["access_token"] as String); if (courseModel == null) { return(HttpNotFound()); } return(View(courseModel)); }
public async Task <PartialViewResult> TakeAttendance(int Id) { CourseDto courseModel = await _courseApiService.GetById(ApiUrl + "api/Course/" + Id, Session["access_token"] as String); return(PartialView("_CourseStudentsPartial", courseModel)); }