diff options
Diffstat (limited to 'src/Data/DevHive.Data/Interfaces')
| -rw-r--r-- | src/Data/DevHive.Data/Interfaces/IUserRepository.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Data/DevHive.Data/Interfaces/IUserRepository.cs b/src/Data/DevHive.Data/Interfaces/IUserRepository.cs index 917809d..aec0eb3 100644 --- a/src/Data/DevHive.Data/Interfaces/IUserRepository.cs +++ b/src/Data/DevHive.Data/Interfaces/IUserRepository.cs @@ -8,15 +8,17 @@ namespace DevHive.Data.Interfaces { public interface IUserRepository : IRepository<User> { - //Read + Task<bool> AddRoleToUser(User user, string roleName); + Task<User> GetByUsernameAsync(string username); Task<bool> UpdateProfilePicture(Guid userId, string pictureUrl); - //Validations + Task<bool> VerifyPassword(User user, string password); + Task<bool> IsInRoleAsync(User user, string roleName); Task<bool> ValidateFriendsCollectionAsync(List<string> usernames); Task<bool> DoesEmailExistAsync(string email); Task<bool> DoesUserExistAsync(Guid id); Task<bool> DoesUsernameExistAsync(string username); - bool DoesUserHaveThisUsername(Guid id, string username); + Task<bool> DoesUserHaveThisUsernameAsync(Guid id, string username); } } |
