public static ValidateExpressionModel FromEvaluateExpressionPart(EvaluateExpressionPart part)
 {
     var parseException = part.ParseException;
     if (parseException != null)
     {
         return new ValidateExpressionModel()
         {
             Expression = part.Source,
             ExpressionValid = false,
             Message = parseException.Message,
             MessageHtmlEncoded = HttpUtility.HtmlEncode(parseException.Message),
             PositionRow = parseException.PositionRow,
             PositionColumn = parseException.PositionColumn
         };
     }
     else
         return new ValidateExpressionModel() { Expression = part.Source, ExpressionValid = true };
 }
 public virtual ActionResult ValidateExpression(string Expression)
 {
     var part = new EvaluateExpressionPart(Expression);
     return Json(Models.Expressions.ValidateExpressionModel.FromEvaluateExpressionPart(part), JsonRequestBehavior.AllowGet);
 }