public ActionResult DeleteConfirmed(int id) { ExpurgoSLA expurgoSLA = db.ExpurgoSLA.Find(id); db.ExpurgoSLA.Remove(expurgoSLA); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "WorkItemID,Dsc_ExpurgoSLAAnalise,Dsc_ExpurgoSLADimensionamento,Dsc_ExpurgoSLAEntrega,Dsc_RefazerDesenvolvimento")] ExpurgoSLA expurgoSLA) { if (ModelState.IsValid) { db.Entry(expurgoSLA).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(expurgoSLA)); }
// GET: ExpurgoSLA/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ExpurgoSLA expurgoSLA = db.ExpurgoSLA.Find(id); if (expurgoSLA == null) { return(HttpNotFound()); } return(View(expurgoSLA)); }