public ActionResult Create(ProgramStatus programstatus)
        {
            if (ModelState.IsValid)
            {
                db.ProgramStatus.Add(programstatus);
                try
                {
                    db.SaveChanges();
                }
                catch (Exception e)
                {
                    Session["FlashMessage"] = "Failed to create status." + e.Message;
                    return View(programstatus);
                }
                return RedirectToAction("Index");
            }

            return View(programstatus);
        }
 public ActionResult Edit(ProgramStatus programstatus)
 {
     if (ModelState.IsValid)
     {
         db.Entry(programstatus).State = EntityState.Modified;
         try
         {
             db.SaveChanges();
         }
         catch (Exception e)
         {
             Session["FlashMessage"] = "Failed to update status." + e.Message;
             return View(programstatus);
         }
         return RedirectToAction("Index");
     }
     return View(programstatus);
 }