public ActionResult DeleteConfirmed(Guid id) { GenSuggestReport gensuggestreport = db.GenSuggestReports.Find(id); db.GenSuggestReports.Remove(gensuggestreport); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,ParentID,CreatedBy,SlNo,Notes,Description,RecordType,RecordStatus,ReviewedBy,SectionName,WIPDate,PausedDate,ClosedDate,NotAnIssueDate,DataRowVersion,Created,LastUpdated,UserID,ChangeSetNumber,IsActive,Priority,SectionGroupID,SectionID,CID,ClosedByID")] GenSuggestReport gensuggestreport) { if (ModelState.IsValid) { db.Entry(gensuggestreport).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(gensuggestreport)); }
// GET: /SuggestReport/Details/5 public ActionResult Details(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } GenSuggestReport gensuggestreport = db.GenSuggestReports.Find(id); if (gensuggestreport == null) { return(HttpNotFound()); } return(View(gensuggestreport)); }
public ActionResult updateIssue(GenSuggestReport changedIssue) { if (ModelState.IsValid) { db.Entry(changedIssue).State = EntityState.Modified; db.SaveChanges(); // return RedirectToAction("Index"); } var issueReportDetails = db.GenSuggestReports.Where(i => i.RecordType == 1 && i.IsActive == 0).OrderBy(i => i.Created).ToList(); return(new JsonNetResult() { Data = issueReportDetails }); }