public ActionResult DeleteConfirmed(string id) { View_incident_all view_incident_all = db.View_incident_all.Find(id); db.View_incident_all.Remove(view_incident_all); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Create([Bind(Include = "INC_CODE,INC_DATE,INC_TOPIC,INC_REQUESTER,INC_OPEN_BY,INC_ASSIGN_TO,INC_STATUS,INC_CATEGORIES,INC_BILL_NO,INC_BILL_DATE,INC_OPEN_DATE,INC_DUE_DATE,INC_RESOLVE_DATE,INC_DESCRIPTION,HW_CODE,INC_CLOSE_DATE,COST_ID,INC_SUBMIT_DATE,INC_ASSIGN_DATE,COST_SECTION,INC_CANCEL_DATE,STA_DESCRIPTION,EMP_NO,IT_NAME,IT_SURNAME,EMP_ASSIGN,EMP_ASSIGN_NAME,EMP_ASSIGN_SURNAME")] View_incident_all view_incident_all) { if (ModelState.IsValid) { db.View_incident_all.Add(view_incident_all); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(view_incident_all)); }
// GET: Allinc/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } View_incident_all view_incident_all = db.View_incident_all.SingleOrDefault(m => m.INC_CODE == id); if (view_incident_all == null) { return(HttpNotFound()); } return(View(view_incident_all)); }
// GET: Allinc/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } View_incident_all view_incident_all = db.View_incident_all.Find(id); if (view_incident_all == null) { return(HttpNotFound()); } return(View(view_incident_all)); }