public static int Count <TBase>( this IExample <TBase> repository, ApplicationUser user, Expression <Func <TBase, bool> > predicate) { return(repository.GetAll(user).Count(predicate)); }
public static TBase FirstOrDefault <TBase>( this IExample <TBase> repository, ApplicationUser user, Expression <Func <TBase, bool> > predicate) { return(repository.GetAll(user).FirstOrDefault(predicate)); }
public static IQueryable <TBase> Where <TBase>( this IExample <TBase> repository, ApplicationUser user, Expression <Func <TBase, bool> > predicate) { return(repository.GetAll(user).Where(predicate)); }