Пример #1
0
        public async Task <int> UpdateTemplate([FromBody] Template obj)
        {
            try
            {
                string appPath = _hostingEnvironment.WebRootPath;
                DynamicComponentController controller = new DynamicComponentController();
                await controller.UpdateTemplate(obj, appPath, GetSiteID, GetUsername);

                return(1);
            }
            catch (Exception ex)
            {
                ProcessException(ex);
                return(0);
            }
        }