public IActionResult AddEatery([Bind("Name,Address,Description,IsVegan,IsVegetarian,HasVeganOptions")] UserEatery newEatery) { newEatery.StandardUserId = GetStandardUserId(); _context.UserEateries.Add(newEatery); _context.SaveChanges(); return(RedirectToAction("ShowUserEateries")); }
public IActionResult AddEatery() { UserEatery userEatery = new UserEatery(); return(View()); }