public ActionResult Create(GenreModel genremodel)
        {
            if (ModelState.IsValid)
            {
                db.GenreModels.Add(genremodel);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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