public static C GetC(OrderDetail od) { return new C { Id = od.Id, OrderId = od.OrderId, OrderDetail = od }; }
public static void CallTwice(OrderDetail od) { var test = GetCustomer(od.Order).Where(o => o.Date.Year == 2000 && o.CustomerId > 10); var test2 = GetCustomer(od.Order).Where(o => o.Date.Year == 2000 && o.CustomerId > 10); }