Example #1
0
 public PricesPresenter(IPricesView view)
 {
     this.view = view;
     request   = HttpContext.Current.Request;
     session   = HttpContext.Current.Session;
     cache     = HttpContext.Current.Cache;
 }
Example #2
0
        public static Filter Bind(IPricesView view, HttpRequest request)
        {
            var filter = new Filter
            {
                State  = view.State,
                Market = view.Market,
                Flyer  = view.Flyer,
                Prices = view.PricesJoin
            };

            var result = new Filter(filter.GetCurrentState(filter.State),
                                    filter.GetSelectedMarket(filter.Market),
                                    filter.GetSelectedFlyer(filter.Flyer),
                                    filter.Prices);

            return(result);
        }