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); } }
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); } }