Exemplo n.º 1
0
        public IActionResult Delete(int humanId)
        {
            try
            {
                _humanRepository.RemoveHuman(humanId);
            }
            catch
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }

            return(View());
        }
Exemplo n.º 2
0
        public IActionResult Delete(int humanId)
        {
            try
            {
                _humanRepository.RemoveHuman(humanId);
            }
            catch
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }

            return(RedirectToRoute(new { controller = "Human", action = "Index" }));
        }