public ActionResult DeleteConfirmed(int id, int perfID)
        {
            PerformanceCommentThread performanceCommentThread = db.PerformanceCommentThreads.Find(id);

            db.PerformanceCommentThreads.Remove(performanceCommentThread);
            db.SaveChanges();
            return(RedirectToAction("Index", new { perfId = performanceCommentThread.PerformanceID }));
        }
        // GET: PerformanceComments/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PerformanceCommentThread performanceCommentThread = db.PerformanceCommentThreads.Find(id);

            if (performanceCommentThread == null)
            {
                return(HttpNotFound());
            }
            return(View(performanceCommentThread));
        }
        public ActionResult Edit([Bind(Include = "Id,Comment,UserId,PerformanceID")] PerformanceCommentThread performanceCommentThread)
        {
            if (ModelState.IsValid)
            {
                db.Entry(performanceCommentThread).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            ViewBag.UserId = new SelectList(db.AspNetUsers.Where(u => u.Email == User.Identity.Name), "Id", "Email");
            var performanceAttended = db.ShowLists.Where(fb => fb.AspNetUser.Email == User.Identity.Name);

            ViewBag.PerformanceID = new SelectList(db.Performances.Join(performanceAttended, p => p.Id, fb => fb.PerformanceId, (p, fb) => p), "Id", "Name");
            return(View(performanceCommentThread));
        }
        // GET: PerformanceComments/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PerformanceCommentThread performanceCommentThread = db.PerformanceCommentThreads.Find(id);

            if (performanceCommentThread == null)
            {
                return(HttpNotFound());
            }
            ViewBag.UserId = new SelectList(db.AspNetUsers.Where(u => u.Email == User.Identity.Name), "Id", "Email");
            var performanceAttended = db.ShowLists.Where(fb => fb.AspNetUser.Email == User.Identity.Name);

            ViewBag.PerformanceID = new SelectList(db.Performances.Join(performanceAttended, p => p.Id, fb => fb.PerformanceId, (p, fb) => p), "Id", "Name");
            return(View(performanceCommentThread));
        }