示例#1
0
        public async Task <IActionResult> ConfirmarExclusao(int id)
        {
            await _cursoService.Excluir(id);

            return(RedirectToAction(nameof(Index)));
        }
示例#2
0
 public IActionResult ConfirmarExclusao(int id)
 {
     _cursoService.Excluir(id);
     return(RedirectToAction(nameof(Index)));
 }
示例#3
0
 public IActionResult Excluir(int id)
 {
     _servico.Excluir(id);
     return(Ok());
 }