Exemple #1
0
        public JsonResult NextFireTime()
        {
            string cronExpressionString = Request.Params["CronExpression"].ToString();

            try
            {
                var result = QuartzHelper.GetNextRunTime(cronExpressionString, 5);

                string msg = JsonHelper.ToJson(result);

                return(Json(new { result = true, msg = msg }));
            }
            catch
            {
                return(Json(new { result = false, msg = "" }));
            }
        }