public ActionResult Keycode(string key) { try { var playlists = playlistManager.ReadPlaylists(); Playlist playlist = playlists.FirstOrDefault(p => p.Key == key); return Json(playlist.Key); }catch{ return new HttpStatusCodeResult(400); } }