public void DeleteForm(ModuleDeleteInputDto deleteDto) { if (!string.IsNullOrEmpty(deleteDto.Id)) { int count = _sysModuleRepository.Count(b => b.ParentId.Equals(deleteDto.Id)); if (count > 0) { } else { _sysModuleRepository.Delete(deleteDto.Id); } } }
public ActionResult DeleteForm(ModuleDeleteInputDto userDto) { _sysModuleApp.DeleteForm(userDto); return(Json(new { state = ResultType.success.ToString(), message = "删除成功!" })); }