Пример #1
0
        public async Task <bool> DeleteItemAsync(string id)
        {
            var room = await GetItemAsync(id);

            if (room == null)
            {
                return(false);
            }

            _playlistsContext.Remove(room);
            await _playlistsContext.SaveChangesAsync();

            return(true);
        }