// GET: Outages/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            OutageManager outageManager = new OutageManager();
            Outage        outage        = outageManager.GetOutage(id);

            if (outage == null)
            {
                return(HttpNotFound());
            }
            return(View(outage));
        }
        // GET: Outages/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            OutageManager outageManager = new OutageManager();
            Outage        outage        = outageManager.GetOutage(id);

            if (outage == null)
            {
                return(HttpNotFound());
            }
            ApplicationManager appManager = new ApplicationManager();

            ViewBag.ApplicationID = new SelectList(appManager.GetApplicationList(), "ID", "ApplicationName", outage.ApplicationID);
            return(View(outage));
        }