public ActionResult UpdateRetailer()
        {
            if (Session["loggedIn"] != null)
            {
                String username = Session["loginName"].ToString();
                System.Diagnostics.Debug.WriteLine("UpdateRetailer Controller");
                Retailer r = new Retailer();
                r.getRetailer(username);

                return View(r);
            }
            else
            {
                return RedirectToAction("Index", "Login");
            }
        }
Exemplo n.º 2
0
        public Order(string username, String accountType, ShoppingCart cart)
        {
            this.cart = (ShoppingCart) cart;

            if (accountType.Equals("Personal"))
            {
                customerDetails = new Customer(username);
                country = customerDetails.country;
            }
            else
            {
                retailerDetails = new Retailer();
                retailerDetails.getRetailer(username);
                country = retailerDetails.country;
            }

            paymentDetails = new Payment(username, accountType);
            getShippersDetails();

            getTotals();
        }