Example #1
0
        public JsonResult Edit(SchedulerTaskEntity model)
        {
            var            success = true;
            var            message = "保存成功!";
            ISchedulerTask taskbll = new SchedulerTask();

            try
            {
                taskbll.Edit(model);
            }
            catch (Exception e)
            {
                success = false;
                message = e.Message;
            }

            return(Json(new AjaxResult()
            {
                type = success ? ResultType.success : ResultType.error, message = message
            }));
        }