public async Task <List <ReportSourceColumnDto> > GetReportSourceColumns(ReportSourceDto dto) { try { var content = _serviceResponseHandler.BuildJsonContent(dto); var response = await _httpClient.PostAsync("api/Adhoc/ReportSources/Columns", content); return(await _serviceResponseHandler.HandleJsonResponse <List <ReportSourceColumnDto> >(response)); } catch (AccessTokenNotAvailableException exception) { exception.Redirect(); } return(new List <ReportSourceColumnDto>()); }
public async Task <IActionResult> GetReportSourceColumns([FromBody] ReportSourceDto dto) { var service = GetService <AdhocGet>(); return(Ok(await service.GetReportSourceColumns(dto))); }