public async Task <IActionResult> Process(ListRequest request, IValidatorActionResult validatorActionResult) { IActionResult actionResult; if (validatorActionResult.Result == null) { request.UpdateFilter(fromToSet: new Dictionary <string, string> { { "login", "Login/Value" }, { "firstName", "fullName/firstName/value" }, { "lastName", "fullName/lastName/value" }, { "version", "dissalowed" }, }); var call = _cqsMapper.Map(request); var result = await _mediator.Send(call); actionResult = result.IsFailure ? _apiResponse.Fail(result) : _apiResponse.Ok(((Result <UsersModel>)result).Value); } else { actionResult = validatorActionResult.Result; } return(actionResult); }