示例#1
0
 public async Task <IHttpActionResult> List(int pageNumber = 0)
 {
     return(Json(new
     {
         Results = await LogsDao.List(this, pageNumber)
     }));
 }
示例#2
0
        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));
        }