Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
has anyone an example of how to get all vendr orders via a webservice?
I found an example by Matt how to get all orders by a customer
But I cannot adapt this to my webservice.
Main problem is how to instantiate orderservice. In Umbraco v7 to instantiate ContentService I would just do it like so:
var contentService = ApplicationContext.Current.Services.ContentService;
Is there a similar way for the IOrderService?
The best way is to inject the IOrderService into your controller, if you are using one. Else you can do something like this:
var orderService = Umbraco.Core.Composing.Current.Factory.GetInstance(typeof(IOrderService)) as IOrderService;
Let me know if it worked!
it works! Thank you very much for your help!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted