[WebMethod]
public string AddNewsVendor(int parentId, string Datetype, int copyContentParetnId, string copyDateType )
{
var service = ContentService;
var newVendorPost = service.CreateContentWithIdentity("test", parentId, Datetype);
}
but in ContentService nedds sam parametrs but in example not need parametrs.
Webservices
https://our.umbraco.org/documentation/Reference/Management/Services/ContentService
but in ContentService nedds sam parametrs but in example not need parametrs.
what's wrong?
Hi Ennija.
Try accessing ContentService directly, and not by creating an instance.
Like so:
Best of luck to you!!
is working on a reply...