Пример #1
0
 public ApiResult <ReportRequest> Report(int reportId)
 {
     return(Execute(() =>
     {
         var request = Mapper.Map <ReportRequest>(_reportsRepository.GetReport(reportId));
         request.ReportRequestParameters.ForEach(one =>
         {
             if (one.ParameterViewName == "ActiveFlagDropDown")
             {
                 one.ParameterValue = "1";
             }
         });
         return request;
     }));
 }
Пример #2
0
 public saCommonReportData GetReport(saReportParams param)
 {
     try
     {
         if (AuthHelper.VerifyToken(param.token))
         {
             return(repository.GetReport(param));
         }
         else
         {
             //not verified
             return(null);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #3
0
 public ReportVM GetReport(int reportId)
 {
     return(_repo.GetReport(reportId));
 }
Пример #4
0
 T IReportsQuery.GetReport <T>(Guid clientId)
 {
     return(_repository.GetReport <T>(clientId));
 }