28 lines
748 B
C#
28 lines
748 B
C#
using UserManagement.Application.Dtos.Incomming;
|
|
using UserManagement.Application.Dtos.Outgoing;
|
|
using UserManagement.Domain.Entities;
|
|
|
|
namespace UserManagement.Application.Interfaces
|
|
{
|
|
public interface IRoleService
|
|
{
|
|
// CREATE
|
|
Task<Role?> AddRoleAsync(CreatingRoleDto creatingRoleDto);
|
|
|
|
// READ ALL
|
|
Task<IEnumerable<ReadingRoleDto>> GetAllRolesAsync();
|
|
|
|
// READ BY ID
|
|
Task<ReadingRoleDto> GetRoleByIdAsync(int id);
|
|
|
|
// READ BY NAME
|
|
Task<ReadingRoleDto> GetRoleByNameAsync(string name);
|
|
|
|
// UPDATE
|
|
Task<bool> UpdateRoleAsync(UpdatingRoleDto updatingRoleDto);
|
|
|
|
// DELETE
|
|
Task<bool> DeleteRoleAsync(int id);
|
|
}
|
|
}
|