public IActionResult DeleteConfirmed(Guid id) { _empregadoAppService.Remove(id); if (!IsValidOperation()) { return(View(_empregadoAppService.GetById(id))); } ViewBag.Sucesso = "Empregado Removido!"; return(RedirectToAction("Index")); }
public IActionResult Delete(Guid id) { _empregadoAppService.Remove(id); return(Response()); }