public ActionResult Pay(PaymentType paymentType) { switch (paymentType) { case PaymentType.Bank: PaymentStrategy = new BankStrategy(); break; case PaymentType.IBox: PaymentStrategy = new IBoxStrategy(); break; case PaymentType.Visa: PaymentStrategy = new VisaStrategy(); break; } return(PaymentStrategy.PaymentView((OrderViewModel)Session["Order"])); }