public IHttpActionResult GetFilters() { BLL.ReportShipmentAmount bll = new BLL.ReportShipmentAmount(); Library.DTO.Notification notification; IEnumerable <DTO.Support.Season> result = bll.GetSeasons(out notification); return(Ok(new Library.DTO.ReturnData <IEnumerable <DTO.Support.Season> >() { Data = result, Message = notification, TotalRows = 0 })); }
public IHttpActionResult GetShipmentAmountNL(string season) { 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.ReportShipmentAmount bll = new BLL.ReportShipmentAmount(); string reportFileName = bll.GetShipmentAmountNL(season, out notification); return(Ok(new Library.DTO.ReturnData <string>() { Data = reportFileName, Message = notification })); }