public ActionResult DeleteConfirmed(int id) { tlkpSeverityType tlkpSeverityType = db.tlkpSeverityTypes.Find(id); db.tlkpSeverityTypes.Remove(tlkpSeverityType); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "idsSeverityType,txtSeverityType,dtmCreate")] tlkpSeverityType tlkpSeverityType) { if (ModelState.IsValid) { db.Entry(tlkpSeverityType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tlkpSeverityType)); }
public ActionResult Create([Bind(Include = "idsSeverityType,txtSeverityType,dtmCreate")] tlkpSeverityType tlkpSeverityType) { if (ModelState.IsValid) { db.tlkpSeverityTypes.Add(tlkpSeverityType); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tlkpSeverityType)); }
// GET: tlkpSeverityTypes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tlkpSeverityType tlkpSeverityType = db.tlkpSeverityTypes.Find(id); if (tlkpSeverityType == null) { return(HttpNotFound()); } return(View(tlkpSeverityType)); }