Example #1
0
        public async Task DeleteAsyncMatch(int id)  // metoda usuwa mecz
        {
            var match = await _matchRepository.GetAsyncMatch(id);

            if (match == null)
            {
                throw new Exception($"Match with this id {id} does not exist");
            }
            await _matchRepository.DeleteAsyncMatch(match);
        }