using AsbCloudApp.Data; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace AsbCloudApp.Services { public interface IUserRoleService : ICrudService { Task GetByNameAsync(string name, CancellationToken token = default); List GetNestedById(int id, int counter = 10); IEnumerable GetNestedPermissions(IEnumerable roles); bool HasPermission(IEnumerable rolesIds, string permissionName, int permissionMask = 0); } }