public ActionResult AddOrderToBill(string quantity, string foodId) { string currentUserId = User.Identity.GetUserId(); if (!String.IsNullOrEmpty(quantity) && !String.IsNullOrEmpty(foodId)) { _customerService.AddOrder(Int32.Parse(quantity), Int32.Parse(foodId), currentUserId); } int subcategoryId = (int)TempData["subcategoryId"]; IEnumerable <Food> food = _customerService.GetSubcategoryFood((subcategoryId)); return(View("Food", food)); }