public async Task <ActionResult <PagedList <GetAuditLogApiDto> > > GetMany(string searchText, int page = 1, int pageSize = 10) { var events = await _auditLogService.GetAsync(searchText, page, pageSize); var response = _mapper.Map <PagedList <GetAuditLogApiDto> >(events); return(Ok(response)); }
public async Task <IActionResult> AuditLog([FromQuery] AuditLogFilterDto filters) { ViewBag.SubjectIdentifier = filters.SubjectIdentifier; ViewBag.SubjectName = filters.SubjectName; ViewBag.Event = filters.Event; ViewBag.Source = filters.Source; ViewBag.Category = filters.Category; var logs = await _auditLogService.GetAsync(filters); return(View(logs)); }
public async Task <ActionResult <IEnumerable <AuditLogDto> > > Get([FromQuery] Guid?entityId, [FromQuery] int?skip, [FromQuery] int?take) { return(Ok(await _auditLogService.GetAsync(entityId, skip, take))); }