// GET: Missions/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Mission mission              = db.Missions.Find(id);
            var     missionResponses     = db.MissionResponses.Where(x => x.MissionID == id).ToList();
            var     missionResposesModel = new MissionResposesModel();

            missionResposesModel.mission          = mission;
            missionResposesModel.missionResponses = missionResponses;
            if (mission == null)
            {
                return(HttpNotFound());
            }
            ViewBag.TitleSideBar = "Missions";

            return(View(missionResposesModel));
        }
        // GET: Missions/Details/5
        public ActionResult Details(int?id)
        {
            if (Session["ID"] == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            if (id == null)
            {
                return(RedirectToAction("Default", "Home"));
            }
            Mission mission              = db.Missions.Find(id);
            var     missionResponses     = db.MissionResponses.Where(x => x.MissionID == id).ToList();
            var     missionResposesModel = new MissionResposesModel();

            missionResposesModel.mission          = mission;
            missionResposesModel.missionResponses = missionResponses;
            if (mission == null)
            {
                return(HttpNotFound());
            }
            ViewBag.TitleSideBar = "Missions";

            return(View(missionResposesModel));
        }