private decimal Price() { GetQuote lastPage = (GetQuote)Context.Handler; baseRate = BaseRate.calculate(lastPage.DOM, lastPage.Engine); return(PremiumCalculator.calculate(baseRate, lastPage.Bonus, lastPage.AdditionalDriverFlag)); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lastPage = (GetQuote)Context.Handler; quote = Price(); Label1.Text = quote.ToString() + " €"; Session["quote"] = quote; Session["startDate"] = lastPage.StartPolicyDate; } }