Пример #1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var jogo = await _jogoRepository.GetAsync(id);

            await _jogoRepository.DeleteAsync(jogo);

            return(RedirectToAction(nameof(Index)));
        }
 public async Task <bool> Delete(Guid id)
 {
     return(await _repository.DeleteAsync(id));
 }
Пример #3
0
 public async Task DeleteAsync(int id)
 {
     await _jogoRepository.DeleteAsync(id);
 }