public ActionResult DeleteConfirmed(int id)
        {
            CaseSummaryReport caseSummaryReport = db.CaseSummaryReports.Find(id);

            db.CaseSummaryReports.Remove(caseSummaryReport);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "CaseSummaryReportId,TicketId,IsApproved,CreatedBy,Body,LastUpdated,DateTimeCreated")] CaseSummaryReport caseSummaryReport)
 {
     if (ModelState.IsValid)
     {
         db.Entry(caseSummaryReport).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.TicketId = new SelectList(db.Tickets, "TicketId", "IdAttached", caseSummaryReport.TicketId);
     return(View(caseSummaryReport));
 }
        // GET: CaseSummaryReports/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CaseSummaryReport caseSummaryReport = db.CaseSummaryReports.Find(id);

            if (caseSummaryReport == null)
            {
                return(HttpNotFound());
            }
            return(View(caseSummaryReport));
        }
        // GET: CaseSummaryReports/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CaseSummaryReport caseSummaryReport = db.CaseSummaryReports.Find(id);

            if (caseSummaryReport == null)
            {
                return(HttpNotFound());
            }
            ViewBag.TicketId = new SelectList(db.Tickets, "TicketId", "IdAttached", caseSummaryReport.TicketId);
            return(View(caseSummaryReport));
        }