예제 #1
0
        public IActionResult Create()
        {
            int userid = (int)HttpContext.Session.GetInt32("UserId");
            var title  = Request.Form["title"];

            _playlistRepo.AddPlaylist(title, userid);
            return(RedirectToAction("Playlist", "Home"));
        }