2024-07-10 09:00:36 +02:00

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);
}
}