Exemplo n.º 1
0
 public async Task <IActionResult> Auditlog(
     [FromServices] IAuditlogger auditlogger,
     int page = 1)
 {
     if (page <= 0)
     {
         return(BadRequest());
     }
     return(View(await auditlogger.ViewLogsAsync(null, page, 1000)));
 }
Exemplo n.º 2
0
        public async Task <IActionResult> Auditlog(
            [FromServices] IAuditlogger logger,
            int cid, int page = 1)
        {
            if (page <= 0)
            {
                return(NotFound());
            }
            var(model, totalPage) = await logger.ViewLogsAsync(cid, page, 1000);

            ViewBag.Page      = page;
            ViewBag.TotalPage = totalPage;
            return(View(model));
        }