public async Task <IList <Template> > GetAllPostTemplatesByKey(string postKey, int siteId, string type = null) { DynamicComponentDataProvider provider = new DynamicComponentDataProvider(); return(await provider.GetAllPostTemplatesByKey(postKey, siteId, type)); }