public static void Update(ClientOrderViewModel order) { ClientOrderViewModel editable = One(o => o.OrderID == order.OrderID); if (editable != null) { editable.OrderDate = order.OrderDate; editable.ShipAddress = order.ShipAddress; editable.ShipCountry = order.ShipCountry; editable.ShipName = order.ShipName; editable.ContactName = order.ContactName; editable.Employee = order.Employee; editable.EmployeeID = order.EmployeeID; } }