BB.UI.Web.MVC.Controllers.PlaylistController.Keycode C# (CSharp) Метод

Keycode() приватный Метод

private Keycode ( string key ) : System.Web.Mvc.ActionResult
key string
Результат System.Web.Mvc.ActionResult
        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);
            }
        }