public static List <Asset> Update(this List <Asset> source, Asset asset, bool push = false) { try { source.ForEach((aa) => { if (aa.AssetNumber == asset.AssetNumber) { aa = asset; if (push) { Push.Asset(asset); } } }); } catch { } return(source); }