예제 #1
0
        public ActionResult Edit(manager manager)
        {
            if (ModelState.IsValid)
            {
                this.vodpointsdb.Entry(manager).State = EntityState.Modified;
                this.vodpointsdb.SaveChanges();
            }

            return RedirectToAction("Index");
        }
예제 #2
0
        public ActionResult Create(manager manager)
        {
            if (ModelState.IsValid)
            {
                this.vodpointsdb.managers.Add(manager);
                this.vodpointsdb.SaveChanges();
            }

            return RedirectToAction("Index");
        }