Esempio n. 1
0
 public IHttpActionResult GetLogs(int pageNo = 1, int pageSize = 10)
 {
     try
     {
         int skip  = (pageNo - 1) * pageSize;
         int total = audittrail.GetLogs().Count();
         var logs  = audittrail.GetLogs().Skip(skip).Take(pageSize);
         return(Ok(new Paging <audit_trail>(logs, pageNo, pageSize, total)));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }