public ActionResult DeleteConfirmed(int id)
        {
            RaidAttendance raidAttendance = db.RaidAttendance.Find(id);

            db.RaidAttendance.Remove(raidAttendance);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "AttendanceID,PlayerID,RaidInstanceID,TotalAttendance,RecentAttendance")] RaidAttendance raidAttendance)
 {
     if (ModelState.IsValid)
     {
         db.Entry(raidAttendance).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.PlayerID       = new SelectList(db.Player, "PlayerID", "PlayerName", raidAttendance.PlayerID);
     ViewBag.RaidInstanceID = new SelectList(db.RaidInstance, "RaidInstanceID", "RaidInstanceID", raidAttendance.RaidInstanceID);
     return(View("~/Views/Admin/RaidAttendances/Edit.cshtml", raidAttendance));
 }
        // GET: RaidAttendances/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RaidAttendance raidAttendance = db.RaidAttendance.Find(id);

            if (raidAttendance == null)
            {
                return(HttpNotFound());
            }
            return(View("~/Views/Admin/RaidAttendances/Details.cshtml", raidAttendance));
        }
        // GET: RaidAttendances/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RaidAttendance raidAttendance = db.RaidAttendance.Find(id);

            if (raidAttendance == null)
            {
                return(HttpNotFound());
            }
            ViewBag.PlayerID       = new SelectList(db.Player, "PlayerID", "PlayerName", raidAttendance.PlayerID);
            ViewBag.RaidInstanceID = new SelectList(db.RaidInstance, "RaidInstanceID", "RaidInstanceID", raidAttendance.RaidInstanceID);
            return(View("~/Views/Admin/RaidAttendances/Edit.cshtml", raidAttendance));
        }