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

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

            return RedirectToAction("Index");
        }