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:
Joseph Milazzo 2021-01-18 17:18:42 -06:00
parent 80283bcd49
commit 295e62d773
7 changed files with 64 additions and 61 deletions

View file

@ -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)
{