You get zero orders because
List<OrderInfo> orders = CommerceLibAccess.GetOrdersByRecent(recordCount);
is returning an empty list.
It is returning an empty list because:
return ConvertDataTableToOrders (GenericDataAccess.ExecuteSelectCommand (comm));
is returning an empty data-table.
You’ll have to dig into your data table to figure out why it thinks its empty.
(maybe because it is actually empty??)
2
solved Function is not working [closed]