CSR/CSR.Application/Interfaces/IRoleRepository.cs

13 lines
320 B
C#

namespace CSR.Application.Interfaces;
using CSR.Domain.Entities;
public interface IRoleRepository
{
Task<Role?> GetByIdAsync(int id);
// Task<Role?> GetByNameAsync(string name);
// Task<IEnumerable<Role>> GetAllAsync();
Task AddAsync(Role role);
// Task UpdateAsync(Role role);
Task DeleteAsync(int id);
}