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