Exemplo n.º 1
0
        public ActionResult Create(DR_MODELPROGRESS_LINE dr_modelprogress_line)
        {
            if (ModelState.IsValid)
            {
                db.DR_MODELPROGRESS_LINE.Add(dr_modelprogress_line);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(dr_modelprogress_line);
        }
Exemplo n.º 2
0
 public ActionResult Edit(DR_MODELPROGRESS_LINE dr_modelprogress_line)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dr_modelprogress_line).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(dr_modelprogress_line);
 }