コード例 #1
0
        public ActionResult PickedSauce(Guid id)
        {
            var sauce = SauceManager.GetAllSauces().Where(x => x.Id == id).FirstOrDefault();

            var order = TempData["order"] as OrderViewModel;

            order.sauce       = sauce;
            TempData["order"] = order;
            return(RedirectToAction("IngredientsPicker"));
        }
コード例 #2
0
        public ActionResult SaucePicker()
        {
            var models = SauceManager.GetAllSauces();

            return(View(models));
        }
コード例 #3
0
        public ActionResult ManageSauces()
        {
            List <SauceModel> models = SauceManager.GetAllSauces();

            return(View(models));
        }