public async Task <IHttpActionResult> List(int pageNumber = 0) { return(Json(new { Results = await LogsDao.List(this, pageNumber) })); }
public async Task <ActionResult> Index(int?pageNumber) { var results = await LogsDao.List(this, pageNumber); var model = new LogsViewModel { PageNumber = 0, Entries = results }; return(View(model)); }