コード例 #1
0
 public async Task <IHttpActionResult> GetReportsList(string reportName, string categoryName)
 {
     try
     {
         ReportsRepository reportsRepo = new ReportsRepository();
         var reportsList = new baseResponse <IEnumerable <Chart> > {
             responseObject = await reportsRepo.GetChartList(reportName, categoryName)
         };
         return(Ok(reportsList));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }