コード例 #1
0
        public ActionResult AddPlaylist(string name)
        {
            Playlist retPlaylist;

            try
            {
                retPlaylist = _currentDB.AddPlaylist(name);
            }
            catch (Exception e)
            {
                return(BadRequest("Failed To Add Playlist - " + e));
            }

            return(Ok(retPlaylist));
        }