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
|
@ -12,6 +12,7 @@ namespace API.Interfaces
|
|||
Task<bool> LibraryExists(string libraryName);
|
||||
Task<Library> GetLibraryForIdAsync(int libraryId);
|
||||
Task<IEnumerable<LibraryDto>> GetLibraryDtosForUsernameAsync(string userName);
|
||||
Task<IEnumerable<Library>> GetLibrariesAsync();
|
||||
Task<Library> GetLibraryForNameAsync(string libraryName);
|
||||
Task<bool> DeleteLibrary(int libraryId);
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ namespace API.Interfaces
|
|||
public interface IUserRepository
|
||||
{
|
||||
void Update(AppUser user);
|
||||
public void Delete(AppUser user);
|
||||
Task<AppUser> GetUserByUsernameAsync(string username);
|
||||
Task<IEnumerable<MemberDto>> GetMembersAsync();
|
||||
public void Delete(AppUser user);
|
||||
Task<IEnumerable<AppUser>> GetAdminUsersAsync();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue