Exemplo n.º 1
0
        public ActionResult WriteResFiles()
        {
            var resFileWriter = SiteManager.Kernel.Get <ResFileWriter>();

            try
            {
                CommOp.TryAndTry(() => resFileWriter.WriteResFiles());
            }
            catch (Exception ex)
            {
                return(JsonTips("error", JStr.OperationFailed, ex.Message));
            }
            return(JsonTips("success", JStr.OperationSucceed, FStr.PlzRestartWebSite));
        }