Пример #1
0
        public ActionResult GetAllServiceInfos()
        {
            var list = QuartzHelper.GetServices();
            List <ServiceInfo> infos = new List <ServiceInfo>();

            foreach (var item in list)
            {
                try {
                    infos.Add(QuartzHelper.GetServiceInfo(item, true, true));
                } catch (Exception) { }
            }
            return(Json(new { code = 1, date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), items = infos }, JsonRequestBehavior.AllowGet));
        }