コード例 #1
0
 public IHttpActionResult GetSearchFilterData()
 {
     BLL.FactoryProformaInvoiceMng bll = new BLL.FactoryProformaInvoiceMng(Helper.AuthHelper.GetCurrentUserFolder(ControllerContext));
     Library.DTO.Notification      notification;
     DTO.FactoryProformaInvoiceMng.SearchFilterData data = bll.GetFilterData(out notification);
     return(Ok(new Library.DTO.ReturnData <DTO.FactoryProformaInvoiceMng.SearchFilterData>()
     {
         Data = data, Message = notification, TotalRows = 0
     }));
 }
コード例 #2
0
        public DTO.FactoryProformaInvoiceMng.SearchFilterData GetFilterData(out Library.DTO.Notification notification)
        {
            notification = new Library.DTO.Notification()
            {
                Type = Library.DTO.NotificationType.Success
            };
            DTO.FactoryProformaInvoiceMng.SearchFilterData data = new DTO.FactoryProformaInvoiceMng.SearchFilterData();
            data.Seasons = new List <DTO.Support.Season>();

            try
            {
                data.Seasons = supportFactory.GetSeason().ToList();
            }
            catch (Exception ex)
            {
                notification.Type    = Library.DTO.NotificationType.Error;
                notification.Message = ex.Message;
            }

            return(data);
        }