Refresh object in EntityFramework
Shouldn't you be checking
order.IsFinalized instead of updatedOrder.IsFinalized? From the way this reads, updatedOrder is the user-modified instance and order is freshly loaded at the beginning of the method.