2024-05-15 15:28:34 +03:00

20 lines
491 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.AspNetCore.Identity;
namespace JobMarket.Services.Abstract
{
public interface IRoleService
{
Task<IEnumerable<IdentityRole>> GetAllRoles();
Task<IdentityRole> GetUserRole(string userId);
Task<bool> ChangeUserRole(string userId, string newRoleId);
Task<bool> IsUserAdministrator(string userId);
Task AddRole(string roleName);
bool IsUserAdministrator(object ıd);
object GetUserRole(object ıd);
}
}