Update API LookUp
This commit is contained in:
parent
272f8330d7
commit
5eead2846b
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user