[HttpGet, Route("searchReport"), AllowAnonymous]//AmigoTenantClaimsAuthorize(ActionCode = ConstantsSecurity.ActionCode.WeeklyReportSearch)
        public HttpResponseMessage SearchReport([FromUri] AmigoTenantTServiceSearchRequest search)
        {
            var response = Request.CreateResponse();

            response.Content = new PushStreamContent((outputStream, httpContent, transportContext)
                                                     => _serviceApplicationService.GenerateDataCsvToReportExcel(outputStream, httpContent, transportContext, search), new MediaTypeHeaderValue("text/csv"));
            response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
            {
                FileName        = "amigoTenantTServiceReportDTOs.csv",
                DispositionType = "inline"
            };
            return(response);
        }
 public async Task <ResponseDTO <PagedList <AmigoTenantTServiceReportDTO> > > Search([FromUri] AmigoTenantTServiceSearchRequest search)
 {
     return(await _serviceApplicationService.SearchAmigoTenantTServiceAsync(search));
 }