public async Task <long> DeleteTestsByRoomId(ObjectId roomId) { (await TestWorker.GetTestsByRoomId(roomId)) .Select(async test => await _redisCache.Del($"Test:{test.Id}")); return(await TestWorker.DeleteTestsByRoomId(roomId)); }
public async Task <TestsDB_TestDTO[]> GetTestsByRoomId(ObjectId roomId) => await TestWorker.GetTestsByRoomId(roomId);