12345678910111213141516171819202122 |
- using MTWorkHR.Core.IDto;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MTWorkHR.Core.IRepositories
- {
- public interface IRolePermissionRepository<T> where T : class
- {
- Task<Tuple<ICollection<T>, int>> GetAllAsync(IPagingInputDto pagingInputDto);
- Task<T> GetByIdAsync(long id);
- Task<T> AddAsync(T entity);
- Task<IList<T>> AddRangeAsync(IList<T> entity);
- Task DeleteAsync(T entity);
- Task DeleteAsync(IEnumerable<T> entities);
- Task<string[]> GetRolePermissionsIdsByRoleID(string id);
- Task<List<T>> GetRemovedRolePermissionsIdsByRoleID(string id, string[] permissionIds);
- }
- }
|