public static ProceedToCheckout VerifyNexPage() { switch (IsActive()) { case "03. Address": _verify = new DeliveryAddressPage(); break; case "04. Shipping": _verify = new ShoppingCart(); break; case "01. Summary": _verify = new ShoppingCart(); break; case "05. Payment": _verify = new PaymentPage(); break; case "02. Sign in": _verify = new Authentication(); break; default: return(null); } return(_verify); }
public static ProceedToCheckout ToCheckoutIsLogined() { if (IsLogined()) { _verify = new DeliveryAddressPage(); } else { _verify = new Authentication(); } return(_verify); }