public IActionResult Register(User user) { fridgeContext db = new fridgeContext(); db.User.Add(user); ViewBag.message = "You are successfully registered"; return(View()); }
public AccountController(fridgeContext context) { db = context; }