Update API LookUp

This commit is contained in:
Leandro Hernan Rojas 2025-05-13 14:10:13 -03:00
parent 272f8330d7
commit 5eead2846b

View File

@ -24,7 +24,7 @@ namespace Models.Repositories
=> await _context.PhSInstitutions => await _context.PhSInstitutions
.Where(c => c.Name.Contains(filter)) .Where(c => c.Name.Contains(filter))
.OrderBy(c => c.Name) .OrderBy(c => c.Name)
.Select(c => new ELookUpItem { Id = c.Id, Nombre = c.Name }) .Select(c => new ELookUpItem { Id = c.Id, Nombre = c.Name + " (" + c.Streetaddress + ")" })
.Take(limit) .Take(limit)
.ToListAsync(); .ToListAsync();
public async Task<IEnumerable<ELookUpItem>> PatientsListAsync(string filter, int limit = 10) public async Task<IEnumerable<ELookUpItem>> PatientsListAsync(string filter, int limit = 10)