public ActionResult DocBuilderCreate(string actionName, string name, string company, string title, string format)
        {
            try
            {
                name = (name ?? "").Trim();
                if (string.IsNullOrEmpty(name))
                {
                    name = "John Smith";
                }

                company = (company ?? "").Trim();
                if (string.IsNullOrEmpty(company))
                {
                    company = "ONLYOFFICE";
                }

                title = (title ?? "").Trim();
                if (string.IsNullOrEmpty(title))
                {
                    title = "Commercial director";
                }

                var fileUrl = new DocBuilderHelper(Url, Request).CreateDocument(name, company, title, format);
                return(Redirect(fileUrl));
            }
            catch (Exception ex)
            {
                LogManager.GetLogger("ASC.DocumentBuilder").Error(ex);
                return(RedirectToAction(actionName, new { error = ex.Message }));
            }
        }
        public ActionResult DocBuilderGenerate(string actionName, string builderScript)
        {
            try
            {
                builderScript = (builderScript ?? "").Trim();
                if (string.IsNullOrEmpty(builderScript))
                {
                    throw new Exception("Empty Script");
                }

                var fileUrl = new DocBuilderHelper(Url, Request).GenerateDocument(builderScript);
                return(Redirect(fileUrl));
            }
            catch (Exception ex)
            {
                LogManager.GetLogger("ASC.DocumentBuilder").Error(ex);
                return(RedirectToAction(actionName, new { error = ex.Message }));
            }
        }