public static async Task <ICollection <TModel> > QueryAsync <TModel>(QueryMany <TModel> query) where TModel : class, new() { var provider = Resolver.Get <ITransactStoreProvider <TModel> >(); return((ICollection <TModel>)(await provider.QueryAsync(query))); }
public static ICollection <TModel> Query <TModel>(QueryMany <TModel> query) where TModel : class, new() { var provider = Resolver.Get <ITransactStoreProvider <TModel> >(); return((ICollection <TModel>)(provider.Query(query))); }