public ActionResult Edit(PilotStatusType pilotstatustype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pilotstatustype).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.ClubId = new SelectList(db.Clubs, "ClubId", "ShortName", pilotstatustype.ClubId);
     return View(pilotstatustype);
 }
        public ActionResult Create(PilotStatusType pilotstatustype)
        {
            if (ModelState.IsValid)
            {
                db.PilotStatusTypes.Add(pilotstatustype);
                db.SaveChanges();
                return RedirectToAction("Index");  
            }

            ViewBag.ClubId = new SelectList(db.Clubs, "ClubId", "ShortName", pilotstatustype.ClubId);
            return View(pilotstatustype);
        }