From 9346dc469481c7ec07a36700180c7008a2d9cb45 Mon Sep 17 00:00:00 2001 From: transtrike Date: Thu, 17 Dec 2020 11:55:52 +0200 Subject: Preparation for Friends implementation --- src/DevHive.Data/Repositories/UserRepository.cs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/DevHive.Data/Repositories/UserRepository.cs') diff --git a/src/DevHive.Data/Repositories/UserRepository.cs b/src/DevHive.Data/Repositories/UserRepository.cs index 1508947..130f96e 100644 --- a/src/DevHive.Data/Repositories/UserRepository.cs +++ b/src/DevHive.Data/Repositories/UserRepository.cs @@ -43,8 +43,6 @@ namespace DevHive.Data.Repositories return await this._context .Set() .Include(x => x.Roles) - // To also return the roles, you need to include the roles table, - // but then you loose FindAsync, because there is id of role and id of user .FirstOrDefaultAsync(x => x.Id == id); } -- cgit v1.2.3