Exemplo n.º 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;
     }));
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
 public ReportVM GetReport(int reportId)
 {
     return(_repo.GetReport(reportId));
 }
Exemplo n.º 4
0
 T IReportsQuery.GetReport <T>(Guid clientId)
 {
     return(_repository.GetReport <T>(clientId));
 }