public async Task <IActionResult> GetAuditApplicationsAsync([FromQuery] GetAuditApplicationsQuery request) { var result = await _mediator.Send(request).ConfigureAwait(false); return(result.OnBoth(r => r.IsSuccess ? (IActionResult)Ok(r.Value) : NotFound(r.Error))); }
public async Task <ActionResult> GetAuditApplicationsAsync([FromQuery] GetAuditApplicationsQuery request) { var audits = await _mediator.Send(request).ConfigureAwait(false); return(Ok(audits)); }