DD.WellWorkover.Cloud/AsbCloudApp/Services/IUserService.cs

16 lines
579 B
C#
Raw Normal View History

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