コード例 #1
0
        public ActionResult AddRandomList(int food1, int food2, int food3)
        {
            var re = new Receptmodels();

            _foodServices.AddFoodToUser(User.Identity.Name, food1);
            _foodServices.AddFoodToUser(User.Identity.Name, food2);
            _foodServices.AddFoodToUser(User.Identity.Name, food3);
            return(View());
        }
コード例 #2
0
 public ActionResult AddNewSuggestions(int id)
 {
     _foodServices.AddFoodToUser(User.Identity.Name, id);
     return(RedirectToAction("NewSuggestions"));
 }
コード例 #3
0
 public ActionResult AddToMyFood(int id, int page, string search, bool chicken, bool beef, bool fish, bool meat, bool pork, bool sausage, bool vego, string cookingtime)
 {
     _foodservice.AddFoodToUser(User.Identity.Name, id);
     return(RedirectToAction("ALL", "Food", new { page = page, chicken = chicken, beef = beef, fish = fish, meat = meat, pork = pork, sausage = sausage, vego = vego, cookingtime = cookingtime, search }));
 }