public ActionResult SaveItem(Proveedor item) { try { item.Estatus = true; if (item.ProveedorID > 0) { _proveedorRepository.Update(item); } else { _proveedorRepository.Add(item); } return(RedirectToAction("Index")); } catch (Exception) { return(View("AddEditItem")); } }