Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rajesh 13 posts 33 karma points
    Jul 09, 2015 @ 12:57
    Rajesh
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft