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