public ActionResult Create(CastMaster castmaster)
        {
            if (ModelState.IsValid)
            {
                db.CastMasters.Add(castmaster);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(castmaster);
        }
 public ActionResult Edit(CastMaster castmaster)
 {
     if (ModelState.IsValid)
     {
         db.Entry(castmaster).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(castmaster);
 }