Пример #1
0
        public ActionResult NewSimcha(Simcha s)
        {
            SimchaManager manager = new SimchaManager(Properties.Settings.Default.constr);

            manager.AddSimcha(s);
            return(Redirect("/"));
        }
Пример #2
0
        public ActionResult AddSimcha(Simcha simcha)
        {
            var sManager = new SimchaManager(Settings.Default.Constr);

            sManager.AddSimcha(simcha);
            return(RedirectToAction("Index"));
        }
Пример #3
0
 public ActionResult AddSimcha(Simcha s)
 {
     mng.AddSimcha(s);
     return(Redirect("/"));
 }