예제 #1
0
        public ActionResult ProductSearch(string page)
        {
            var psb    = new ProductSearchBlock(page);
            var filter = new ProductFilter();

            psb.Model = filter;
            return(View(psb));
        }
예제 #2
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));
        }