Exemplo n.º 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"));
 }
Exemplo n.º 2
0
        public IActionResult AddEatery()
        {
            UserEatery userEatery = new UserEatery();

            return(View());
        }