public ActionResult OrderSearchPartial(OrderFilter filter, string page, int?Status, string FormSettings, string ListOverride)
        {
            var options = new OrderSearchTableOptions();

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

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

            osb.Options = options;
            if (Status.HasValue)
            {
                filter.Status = Status.Value;
            }
            filter.ListOverride = ListOverride.Split <int>("_").ToList();
            filter.Search(DB);
            osb.Model = filter;


            return(PartialView(osb));
        }
 public ActionResult GraphIndexSearch(OrderFilter filter, string type)
 {
     ViewBag.StatGraph = type;
     filter.Search(DB);
     return(PartialView(filter));
 }