Fixed grant-access api and new library to properly update the db. Somehow the old way of updating db no longer works.
This commit is contained in:
parent
80283bcd49
commit
295e62d773
7 changed files with 64 additions and 61 deletions
|
@ -36,6 +36,13 @@ namespace API.Data
|
|||
.AsNoTracking()
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Library>> GetLibrariesAsync()
|
||||
{
|
||||
return await _context.Library
|
||||
.Include(l => l.AppUsers)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<Library> GetLibraryForNameAsync(string libraryName)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue