public ActionResult Test() { var replace = _iProductReplaceManager.GetAllReplaceList(2).ToList(); foreach (var item in replace) { bool result = _iCommonManager.UpdateReplaceTransactionRef(item.ReceiveRef, item.ReplaceRef); } return(View()); }