using AsbCloudApp.Data; using System.Collections.Generic; namespace AsbCloudApp.Services { public interface IUserService : ICrudService { IUserRoleService RoleService { get; } IEnumerable GetNestedPermissions(int idUser); IEnumerable GetRolesByIdUser(int idUser); bool HasAnyRoleOf(int idUser, IEnumerable roleNames); bool HasAnyRoleOf(int idUser, IEnumerable roleIds); public bool HasPermission(int idUser, string permissionName); } }