public IHttpActionResult GetFilters() { BLL.ReportPlcProducts bll = new BLL.ReportPlcProducts(); Library.DTO.Notification notification; DTO.ReportPlcProducts.SupportDataContainer result = bll.GetFilters(out notification); return(Ok(new Library.DTO.ReturnData <DTO.ReportPlcProducts.SupportDataContainer>() { Data = result, Message = notification, TotalRows = 0 })); }
public IHttpActionResult Print(int plcID) { Library.DTO.Notification notification; // authentication Module.Framework.BLL fwBll = new Module.Framework.BLL(); if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, Library.DTO.ModuleAction.CanPrint)) { return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED))); } BLL.ReportPlcProducts bll = new BLL.ReportPlcProducts(); string reportFileName = bll.GetReportPlcProducts(plcID, ControllerContext.GetAuthUserId(), out notification); return(Ok(new Library.DTO.ReturnData <string>() { Data = reportFileName, Message = notification })); }