public StationsController(IRail rail, IGoogle google, IStaticStations staticStations, ILogger <StationsController> logger) { _rail = rail; _google = google; _staticStations = staticStations; _logger = logger; }
protected void Page_Load(object sender, EventArgs e) { googleManager = ObjectFactory.GetGoogle(); googleManager.InitializeFromGateway(); if (Request.ServerVariables["HTTP_REFERER"] != null && Request.ServerVariables["HTTP_REFERER"] != "") { googleManager.EditCartUrl = Request.ServerVariables["HTTP_REFERER"]; googleManager.ContinueShoppingUrl = (Request.QueryString["shoppingURL"] != null ? Request.QueryString["shoppingURL"] : googleManager.EditCartUrl); } SetGoogleCheckout(); }