Exemple #1
0
        public async Task <JsonResult> DeleteJob(int jobId)
        {
            var ajaxResponseData = OperateJobAsync(jobId, jobDetail =>
            {
                jobDetail.Deleted      = true;
                jobDetail.TriggerState = 5;
                _customerJobInfoRepository.UpdateCustomerJobInfoAsync(jobDetail);
                return(JobHelper.DeleteJobAsync(jobDetail).Result);
            });

            return(await Task.FromResult(Json(ajaxResponseData)));
        }