From 7941f1ab479b72ee53e94aef54b8390d21d36f84 Mon Sep 17 00:00:00 2001 From: transtrike Date: Thu, 10 Dec 2020 13:48:34 +0200 Subject: Removed async from DbRepo/Query --- API/Database/DbRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'API') diff --git a/API/Database/DbRepository.cs b/API/Database/DbRepository.cs index b961a54..ea1593a 100644 --- a/API/Database/DbRepository.cs +++ b/API/Database/DbRepository.cs @@ -33,13 +33,13 @@ namespace API.Database .FindAsync(id); } - public async Task> Query(int count) + public IEnumerable Query(int count) { return this._context .Set() .AsNoTracking() .Take(count) - .AsAsyncEnumerable(); + .AsEnumerable(); } //Update -- cgit v1.2.3