public void ItemUpdated(PlaceBidViewModel model, AuctionItem item) { if (Items != null) { var targetItem = Items.First((i) => i.Id == item.Id); targetItem.CurrentBid = item.CurrentBid; } }
public void ItemUpdated(PlaceBidViewModel model, AuctionItem item) { if (MyAuctionItems != null) { var targetItem = MyAuctionItems.FirstOrDefault((i) => i.Id == item.Id); if (targetItem != null) { targetItem.CurrentBid = item.CurrentBid; } } }