public ActionResult Options()
        {
            if (DateTimeCheck.checkDT() == false)
            {
                ViewBag.Message = String.Format("Must Wait 24 hours before next purchace at this location!");
                return(View());
            }
            else if (DateTimeCheck.check2hour() == false)
            {
                ViewBag.Message = String.Format("Must Wait 2 hours before next purchace at any store!");
                return(View());
            }

            return(View());
        }
Exemple #2
0
        public ActionResult Order()
        {
            if (DateTimeCheck.checkDT() == false)
            {
                return(RedirectToAction("Options", "Options"));
            }
            else if (DateTimeCheck.check2hour() == false)
            {
                return(RedirectToAction("Options", "Options"));
            }

            Entity db    = new Entity();
            var    pizza = Repository.GetPizza(db);

            ViewData["Pizza"] = pizza.ToList();

            return(View());
        }