public async Task <IList <Template> > GetTemplate() { try { DynamicComponentController controller = new DynamicComponentController(); return(await controller.GetTemplate()); } catch (Exception ex) { ProcessException(ex); return(null); } }