[FA-55] Finished aside from deactivation/integration events
This commit is contained in:
@@ -118,4 +118,18 @@ public class UserManagementService
|
||||
{
|
||||
return _dbContext.Users.AsQueryable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all users invited by a specific user.
|
||||
/// </summary>
|
||||
/// <param name="inviterId">The ID of the user who sent the invites</param>
|
||||
/// <returns>List of users invited by the specified user</returns>
|
||||
public async Task<List<User>> GetInvitedByUserAsync(Guid inviterId)
|
||||
{
|
||||
return await _dbContext.Users
|
||||
.AsQueryable()
|
||||
.Where(u => u.InviterId == inviterId)
|
||||
.OrderByDescending(u => u.CreatedTime)
|
||||
.ToListAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user