public Task <IActionResult> Edit(SysMenu menu) { return(Task.Factory.StartNew <IActionResult>(() => { if (!ModelState.IsValid) { return Json(ExcutedResult.FailedResult("数据验证失败")); } menuRepository.Edit(menu, true); return Json(ExcutedResult.SuccessResult()); })); }