/// <summary>
        /// 手动执行定时任务
        /// </summary>
        /// <param name="taskId"></param>
        /// <returns></returns>
        public ActionResult Execute(int taskId)
        {
            try
            {
                var task = ScheduledTaskService.GetScheduledTaskDetail(taskId);
                if (task == null)
                {
                    throw new KeyNotFoundException(string.Format("找不到定时任务,Id: {0}。", taskId));
                }

                ScheduledTaskService.Execute(task);
            }
            catch (Exception ex)
            {
                Log.Error(ex);
                ViewBag.Message = ex.Message;
            }

            return(RedirectToAction("Index"));
        }