31 lines
818 B
C#
31 lines
818 B
C#
using Project.Application.DTOs.Incoming;
|
|
using Project.Application.DTOs.Outgoing;
|
|
using Project.Domain.Entities;
|
|
|
|
namespace Project.Application.Interfaces
|
|
{
|
|
public interface IUserService
|
|
{
|
|
// CREATE
|
|
Task<User?> AddUserAsync(CreatingUserDto creatingUserDto);
|
|
|
|
// READ ALL
|
|
Task<IEnumerable<ReadingUserDto>> GetUsersAsync();
|
|
|
|
// READ BY ID
|
|
Task<ReadingUserDto> GetByIdAsync(int id);
|
|
|
|
// READ BY EMAIL
|
|
Task<ReadingUserDto> GetByEmailAsync(string email);
|
|
|
|
// UPDATE
|
|
Task<bool> UpdateUserAsync(UpdatingUserDto updatingUserDto);
|
|
|
|
// UPDATE USER ROLE -- die Rolle eines Users aktualisieren
|
|
Task UpdateUserRoleAsync(int userId, int roleId);
|
|
|
|
// DELETE
|
|
Task<bool> DeleteUserAsync(int id);
|
|
}
|
|
}
|