User list

This commit is contained in:
Paul Schneider 2025-08-19 21:31:49 +01:00
commit 44cbaefa9c
11 changed files with 129 additions and 42 deletions

View file

@ -34,7 +34,7 @@ namespace Yavsc.ApiControllers.accounting
public UserInfo[] GetUserHint(string name)
{
return _dbContext.Users.Where(u=>u.UserName.IndexOf(name)>0)
.Select(u=>new UserInfo(u.Id, u.UserName, u.Avatar))
.Select(u=>new UserInfo(u.Id, u.UserName, u.Email, u.Avatar))
.Take(10).ToArray();
}
}