Ejemplo n.º 1
0
 public async Task <IList <Template> > GetAllPostTemplates(int postId, string type)
 {
     try
     {
         DynamicComponentController controller = new DynamicComponentController();
         return(await controller.GetAllPostTemplates(string.Empty, postId, GetSiteID, type));
     }
     catch (Exception ex)
     {
         ProcessException(ex);
         return(null);
     }
 }
Ejemplo n.º 2
0
 public async Task <IList <Template> > ListTemplatesByPostId([FromBody] Template template)
 {
     try
     {
         DynamicComponentController controller = new DynamicComponentController();
         return(await controller.GetAllPostTemplates(template.TemplateName, template.PostId, GetSiteID, template.Type));
     }
     catch (Exception ex)
     {
         ProcessException(ex);
         return(null);
     }
 }