public async Task <IList <Template> > GetAllPostTemplatesByKey([FromBody] Template template)
 {
     try
     {
         DynamicComponentController controller = new DynamicComponentController();
         return(await controller.GetAllPostTemplatesByKey(template.PostKey, GetSiteID, template.Type));
     }
     catch (Exception ex)
     {
         ProcessException(ex);
         return(null);
     }
 }