mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 18:47:05 -04:00 
			
		
		
		
	Refactored ScanLibrary into Library controller and updated it so it adds the new library to all admins.
		
			
				
	
	
		
			20 lines
		
	
	
		
			627 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			627 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections.Generic;
 | |
| using System.Threading.Tasks;
 | |
| using API.DTOs;
 | |
| using API.Entities;
 | |
| 
 | |
| namespace API.Interfaces
 | |
| {
 | |
|     public interface IUserRepository
 | |
|     {
 | |
|         void Update(AppUser user);
 | |
|         Task<bool> SaveAllAsync();
 | |
|         Task<IEnumerable<AppUser>> GetUsersAsync();
 | |
|         Task<AppUser> GetUserByIdAsync(int id);
 | |
|         Task<AppUser> GetUserByUsernameAsync(string username);
 | |
|         Task<IEnumerable<MemberDto>>  GetMembersAsync();
 | |
|         Task<MemberDto> GetMemberAsync(string username);
 | |
|         public void Delete(AppUser user);
 | |
|         Task<IEnumerable<AppUser>> GetAdminUsersAsync();
 | |
|     }
 | |
| } |