public IActionResult Create() { int userid = (int)HttpContext.Session.GetInt32("UserId"); var title = Request.Form["title"]; _playlistRepo.AddPlaylist(title, userid); return(RedirectToAction("Playlist", "Home")); }