Ejemplo n.º 1
0
        public ActionResult ProductSearchPartial(ProductFilter filter, string page, string FormSettings)
        {
            var options = new ProductSearchTableOptions();

            if (FormSettings.IsFilled())
            {
                options =
                    (ProductSearchTableOptions)
                    new JsonSerializable(new ProductSearchTableOptions()).FromString(FormSettings);
            }

            var osb = new ProductSearchBlock(options.Page.IsNullOrEmpty() ? page : options.Page);

            osb.Options = options;
            filter.Search(DB);
            osb.Model = filter;
            return(PartialView(osb));
        }