public JArray GetSections(string accessToken, string userId) { string apiEndPoint = String.Format(ApiHelper.BaseUrl + "/sections", userId); return ApiHelper.CallApiForGet(apiEndPoint, accessToken); }
public ActionResult Index() { ViewBag.Title = "Classes"; var sectionService = new SectionDataService(); dynamic sections = sectionService.GetSections(SessionInfo.Current.AccessToken, SessionInfo.Current.UserId); var model = new SectionListViewModel {Sections = sections}; return View(model); }