示例#1
0
 /// <summary>
 /// 检查文章信息是否存在
 /// </summary>
 /// <param name="predicate">检查谓语表达式</param>
 /// <param name="id">更新的文章信息编号</param>
 /// <returns>文章信息是否存在</returns>
 public virtual Task <bool> CheckPostExists(Expression <Func <Post, bool> > predicate, int id = 0)
 {
     Check.NotNull(predicate, nameof(predicate));
     return(PostRepository.CheckExistsAsync(predicate, id));
 }