public ActionResult DeleteConfirmed(int id)
        {
            CaseSummaryReportComment caseSummaryReportComment = db.CaseSummaryReportComment.Find(id);

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

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

            if (caseSummaryReportComment == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CaseSummaryReportId = new SelectList(db.CaseSummaryReports, "CaseSummaryReportId", "CreatedBy", caseSummaryReportComment.CaseSummaryReportId);
            return(View(caseSummaryReportComment));
        }