public virtual async Task <IResponseResult <IApiResponse <IPaged <IEnumerable <TResponse> > > > > List <TResponse>(ISearchPaging SearchPaging, object searchExtraParams)
 {
     return(await HttpClient.GetJsonResponseResultAsync <IApiResponse <IPaged <IEnumerable <TResponse> > > >($"/{ControllerName}/{ListMethod}", new { SearchPaging, searchExtraParams }));
 }
 public virtual async Task <IResponseResult <byte[]> > DownloadCsvExcel(ISearchPaging SearchPaging, object searchExtraParams)
 {
     return(await HttpClient.SendJsonDownloadBlobAsByteArrayResponseResultAsync(new HttpRequestMessage(HttpMethod.Get, $"/{ControllerName}/{DownloadCsvExcelMethod}"), new { SearchPaging, searchExtraParams }));
 }
Beispiel #3
0
 public async Task <IResponseResult <Stream> > DownloadCsvExcelOwns(ISearchPaging SearchPaging, object searchExtraParams)
 {
     return(await HttpClient.SendJsonDownloadBlobAsStreamResponseResultAsync(new HttpRequestMessage(HttpMethod.Get, $"/{ControllerName}/{DownloadCsvExcelOwnsMethod}"), new { SearchPaging, searchExtraParams }));
 }