Beispiel #1
0
        public IActionResult Delete(Guid id)
        {
            ImpedimentoViewModel obj = _impedimentoAppService.Consultar(id);

            if (obj == null)
            {
                return(NotFound());
            }

            _impedimentoAppService.Remover(id);

            return(NoContent());
        }
Beispiel #2
0
        public IActionResult OnPost()
        {
            _impedimentoAppService.Remover(Impedimento.Id);

            return(RedirectToPage("Listar"));
        }