I need to get all the Templates in the Umbraco CMS via api controller.
For that I found that there is a method in Fileservice which is called GetTemplate and it can be called like following
Services.FileService.GetTemplates();
The documentation says it will return IEnumerable objects of type iTemplates .
But I do not know how this can be declared so that the controller methods returns IEnumerable iTemplate objects.
Can any one help me to declare this so that I can create the api method.
returning gettemplates as a iTemplate list
I need to get all the Templates in the Umbraco CMS via api controller.
For that I found that there is a method in Fileservice which is called GetTemplate and it can be called like following
Services.FileService.GetTemplates();
The documentation says it will return IEnumerable objects of type iTemplates . But I do not know how this can be declared so that the controller methods returns IEnumerable iTemplate objects. Can any one help me to declare this so that I can create the api method.
Thanks in advance.
is working on a reply...