public Task <Order> Update(Order order) { //TODO not very pretty OrderList[OrderList.FindIndex(o => o.Id == order.Id)] = order; return(Task <Order> .FromResult(order)); }