Пример #1
0
 public IActionResult AddEatery([Bind("Name,Address,Description,IsVegan,IsVegetarian,HasVeganOptions")] UserEatery newEatery)
 {
     newEatery.StandardUserId = GetStandardUserId();
     _context.UserEateries.Add(newEatery);
     _context.SaveChanges();
     return(RedirectToAction("ShowUserEateries"));
 }
Пример #2
0
        public IActionResult AddEatery()
        {
            UserEatery userEatery = new UserEatery();

            return(View());
        }