Ejemplo n.º 1
0
        public IHttpActionResult GetSearchSupport(DTO.Search searchInput)
        {
            BLL.WarehouseImportMng   bll = new BLL.WarehouseImportMng();
            Library.DTO.Notification notification;
            int totalRows = 0;

            DTO.WarehouseImportMng.SearchFormData data = bll.GetSearchSupport(out notification);

            return(Ok(new Library.DTO.ReturnData <DTO.WarehouseImportMng.SearchFormData>()
            {
                Data = data, Message = notification, TotalRows = totalRows
            }));
        }
Ejemplo n.º 2
0
        public IHttpActionResult Gets(DTO.Search searchInput)
        {
            // authentication
            Module.Framework.BLL fwBll = new Module.Framework.BLL();
            if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), getModuleCode(), Library.DTO.ModuleAction.CanRead))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }

            BLL.WarehouseImportMng   bll = new BLL.WarehouseImportMng();
            Library.DTO.Notification notification;
            int totalRows = 0;

            DTO.WarehouseImportMng.SearchFormData data = bll.GetDataWithFilter(ControllerContext.GetAuthUserId(), searchInput.Filters, searchInput.PageSize, searchInput.PageIndex, searchInput.SortedBy, searchInput.SortedDirection, out totalRows, out notification);

            return(Ok(new Library.DTO.ReturnData <DTO.WarehouseImportMng.SearchFormData>()
            {
                Data = data, Message = notification, TotalRows = totalRows
            }));
        }