예제 #1
0
        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)));
        }
예제 #2
0
        public async Task <ActionResult> GetAuditApplicationsAsync([FromQuery] GetAuditApplicationsQuery request)
        {
            var audits = await _mediator.Send(request).ConfigureAwait(false);

            return(Ok(audits));
        }