Пример #1
0
        public ActionResult Create(ProjectFlow projectflow)
        {
            if (ModelState.IsValid)
            {
                db.ProjectFlows.Add(projectflow);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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