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