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)); }
public async Task DeleteAsync(int id) { await _jogoRepository.DeleteAsync(id); }