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