Пример #1
0
        public IActionResult Delete(Guid id)
        {
            ProjetoViewModel obj = _projetoAppService.Consultar(id);

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

            _projetoAppService.Remover(id);

            return(NoContent());
        }
Пример #2
0
        public IActionResult OnPost()
        {
            _projetoAppService.Remover(Projeto.Id);

            return(RedirectToPage("Listar"));
        }