/// <summary> /// 检查异常信息是否存在 /// </summary> /// <param name="predicate">检查谓语表达式</param> /// <param name="id">更新的异常信息编号</param> /// <returns>异常信息是否存在</returns> public bool CheckProblemExists(Expression <Func <Problem, bool> > predicate, int id = 0) { return(ProblemRepository.CheckExists(predicate, id)); }