public ActionResult DeleteConfirmed(Guid id) { ViewBag.dadosProcesso = _processoAppService.GetById(Guid.Parse(id.ToString())); ViewBag.ProcessoId = id; _processoAppService.Remove(id); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int id) { var processo = _processoApp.GetById(id); _processoApp.Remove(processo); return(RedirectToAction("Index")); }