コード例 #1
0
 public IHttpActionResult GetInitData()
 {
     BLL.ReportDDC              bll = new BLL.ReportDDC();
     Library.DTO.Notification   notification;
     DTO.ReportDDC.InitFormData data = bll.GetInitData(ControllerContext.GetAuthUserId(), out notification);
     return(Ok(new Library.DTO.ReturnData <DTO.ReportDDC.InitFormData>()
     {
         Data = data, Message = notification, TotalRows = 0
     }));
 }
コード例 #2
0
 public IHttpActionResult GetReportData_HTML(string season)
 {
     Library.DTO.Notification notification;
     // authentication
     Module.Framework.BLL fwBll = new Module.Framework.BLL();
     if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, Library.DTO.ModuleAction.CanRead))
     {
         return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
     }
     BLL.ReportDDC            bll  = new BLL.ReportDDC();
     DTO.DDCReport.ReportData data = bll.GetReportData_HTML(ControllerContext.GetAuthUserId(), season, out notification);
     return(Ok(new Library.DTO.ReturnData <DTO.DDCReport.ReportData>()
     {
         Data = data, Message = notification
     }));
 }