public async Task <IActionResult> GetFinancierContactDetails(int personId, [FromQuery] PagingParameters pagingParams) { GetFinancierContact queryParams = new GetFinancierContact { PersonID = personId, }; var retValue = await _queryRequestHandler.Handle <GetFinancierContact>(queryParams, HttpContext, Response); return(retValue); }
public async Task <IActionResult> GetFinancierAddressDetails(int addressId, [FromQuery] PagingParameters pagingParams) { GetFinancierAddress queryParams = new GetFinancierAddress { AddressID = addressId, }; var retValue = await _queryRequestHandler.Handle <GetFinancierAddress>(queryParams, HttpContext, Response); return(retValue); }
public async Task <IActionResult> GetFinanciers([FromQuery] PagingParameters pagingParams) { GetFinanciers queryParams = new GetFinanciers { Page = pagingParams.Page, PageSize = pagingParams.PageSize }; try { var retValue = await _queryRequestHandler.Handle <GetFinanciers>(queryParams, HttpContext, Response); return(retValue); } catch (Exception ex) { _logger.LogError($"An exception has been thrown: {ex}"); return(BadRequest(ex.Message)); } }