Exemple #1
0
        public IActionResult Delete(Guid id)
        {
            ProjetoViewModel obj = _projetoAppService.Consultar(id);

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

            _projetoAppService.Remover(id);

            return(NoContent());
        }
        public IActionResult OnPost()
        {
            _projetoAppService.Remover(Projeto.Id);

            return(RedirectToPage("Listar"));
        }