31 lines
843 B
C#
31 lines
843 B
C#
using UserManagement.Application.Dtos.Incomming;
|
|
using UserManagement.Application.Dtos.Outgoing;
|
|
using UserManagement.Domain.Entities;
|
|
|
|
namespace UserManagement.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 USERNAME
|
|
Task<ReadingUserDto> GetByUsernameAsync(string username);
|
|
|
|
// UPDATE
|
|
Task<bool> UpdateUserAsync(UpdatingUserDto updatingUserDto);
|
|
|
|
//// UPDATE USER ROLE
|
|
//Task UpdateUserRoleAsync(int userId, int roleId);
|
|
|
|
// DELETE
|
|
Task<bool> DeleteUserAsync(int id);
|
|
}
|
|
}
|