Exemplo n.º 1
0
        public async Task Delete(int id)
        {
            var model = await _clubRepository.GetAsync(id);

            if (model is null)
            {
                throw new ArgumentNullException($"Could not find item with Id: {id}");
            }

            await _clubRepository.DeleteAsync(model);
        }
Exemplo n.º 2
0
 public virtual async Task DeleteAsync(Guid id)
 {
     await _clubRepository.DeleteAsync(id);
 }