Example #1
0
        public IActionResult DeleteConfirmed(Guid id)
        {
            _empregadoAppService.Remove(id);

            if (!IsValidOperation())
            {
                return(View(_empregadoAppService.GetById(id)));
            }

            ViewBag.Sucesso = "Empregado Removido!";
            return(RedirectToAction("Index"));
        }
Example #2
0
        public IActionResult Delete(Guid id)
        {
            _empregadoAppService.Remove(id);

            return(Response());
        }