public IActionResult AddSimcha(Simcha s) { var repo = new SimchaRepository(_connectionString); repo.AddSimcha(s); return(RedirectToAction("Index")); }
public IActionResult NewSimcha(Simcha simcha) { var rep = new SimchaRepository(_connectionString); rep.AddSimcha(simcha); return(Redirect("/")); }
public IActionResult AddSimcha(Simcha simcha) { _repo.AddSimcha(simcha); return(Redirect("/")); }