28 lines
678 B
C#
28 lines
678 B
C#
using Project.Application.DTOs.Incoming;
|
|
using Project.Application.DTOs.Outgoing;
|
|
using Project.Domain.Entities;
|
|
|
|
namespace Project.Application.Interfaces
|
|
{
|
|
public interface IRoleService
|
|
{
|
|
// CREATE
|
|
Task<Role?> AddRoleAsync(CreatingRoleDto creatingRoleDto);
|
|
|
|
// READ ALL
|
|
Task<IEnumerable<ReadingRoleDto>> GetAllAsync();
|
|
|
|
// READ BY ID
|
|
Task<ReadingRoleDto> GetByIdAsync(int id);
|
|
|
|
// READ BY NAME
|
|
Task<ReadingRoleDto> GetByNameAsync(string name);
|
|
|
|
// UPDATE
|
|
Task<bool> UpdateRoleAsync(UpdatingRoleDto updatedRoleDto);
|
|
|
|
// DELETE
|
|
Task<bool> DeleteRoleAsync(int id);
|
|
}
|
|
}
|