public ActionResult Create(Playlist playlist)
        {
            if (ModelState.IsValid)
            {
                db.Playlists.Add(playlist);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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