public ActionResult Create(ProjectFlow projectflow) { if (ModelState.IsValid) { db.ProjectFlows.Add(projectflow); db.SaveChanges(); return RedirectToAction("Index"); } return View(projectflow); }
public ActionResult Edit(ProjectFlow projectflow) { if (ModelState.IsValid) { db.Entry(projectflow).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(projectflow); }