public IActionResult Delete(Guid id) { ImpedimentoViewModel obj = _impedimentoAppService.Consultar(id); if (obj == null) { return(NotFound()); } _impedimentoAppService.Remover(id); return(NoContent()); }
public IActionResult OnPost() { _impedimentoAppService.Remover(Impedimento.Id); return(RedirectToPage("Listar")); }