public ActionResult NewSimcha(Simcha s) { SimchaManager manager = new SimchaManager(Properties.Settings.Default.constr); manager.AddSimcha(s); return(Redirect("/")); }
public ActionResult AddSimcha(Simcha simcha) { var sManager = new SimchaManager(Settings.Default.Constr); sManager.AddSimcha(simcha); return(RedirectToAction("Index")); }
public ActionResult AddSimcha(Simcha s) { mng.AddSimcha(s); return(Redirect("/")); }