2021-12-11 16:46:04 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IUserService : ICrudService<UserExtendedDto>
|
|
|
|
|
{
|
2021-12-20 15:17:09 +05:00
|
|
|
|
IUserRoleService RoleService { get; }
|
|
|
|
|
IEnumerable<PermissionDto> GetNestedPermissions(int idUser);
|
2021-12-11 16:46:04 +05:00
|
|
|
|
IEnumerable<UserRoleDto> GetRolesByIdUser(int idUser);
|
|
|
|
|
bool HasAnyRoleOf(int idUser, IEnumerable<string> roleNames);
|
|
|
|
|
bool HasAnyRoleOf(int idUser, IEnumerable<int> roleIds);
|
2021-12-16 16:00:47 +05:00
|
|
|
|
public bool HasPermission(int idUser, string permissionName);
|
2021-12-11 16:46:04 +05:00
|
|
|
|
}
|
|
|
|
|
}
|