public ActionResult GetSqlScripts() { var sqlScripts = SqlScript.GetSqlScripts(); return(Json(sqlScripts.Select(x => new { x.Id, x.Name, x.Contents }), JsonRequestBehavior.AllowGet)); }