Esempio n. 1
0
        public ActionResult SaveSqlScript(string name, string contents)
        {
            var sqlScript = new SqlScript
            {
                Name     = name,
                Contents = contents
            };

            sqlScript.GenerateKey();
            sqlScript.Save();

            return(Json(new
            {
                Message = $"Successfully saved script as <strong>{name}</strong>"
            }));
        }