GetSectionsAsync() public method

Gets sections details asyncronously.
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
コード例 #1
0
 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);
 }