public GetSectionsAsync ( string accessToken, string userId, int limit, int offset ) : Task |
||
accessToken | string | Access token has to send |
userId | string | User id has to send |
limit | int | |
offset | int | |
return | Task |
public async Task<ActionResult> IndexAsync(int? limit, int? offset) { ViewBag.Title = "Classes"; var sectionService = new SectionDataService(); var sections = await sectionService.GetSectionsAsync(SessionInfo.Current.AccessToken, SessionInfo.Current.UserId, limit, offset) .ContinueWith(t => new SectionListViewModel { Sections = t.Result }); return View("Index", sections); }