protected override async Task <ErrorList> DoReadAsync(object options, CancellationToken token = default) { var output = await SalesOrder_ReadListAsync(options, CriteriaObject?.ToDataContract <SalesOrder_ReadListInput_Criteria>(options)); return(output.Messages); }
protected override ErrorList DoRead(object options) { var output = SalesOrder_ReadList( CriteriaObject == null ? null : CriteriaObject.ToDataContract <SalesOrder_ReadListInput_Criteria>(options), options); return(output.Messages); }