Пример #1
0
 public ActionResult Edit(mmCV mmcv)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mmcv).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(mmcv);
 }
Пример #2
0
        public ActionResult Create(mmCV mmcv)
        {
            if (ModelState.IsValid)
            {
                db.mmCVs.Add(mmcv);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(mmcv);
        }