16 lines
447 B
C#
16 lines
447 B
C#
using HelpDesk.Models.Entities;
|
|
using HelpDesk.Models.Enums;
|
|
|
|
namespace HelpDesk.Data.Repositories;
|
|
|
|
public interface IUserRepository
|
|
{
|
|
Task<User?> GetByIdAsync(Guid id);
|
|
Task<User?> GetByEmailAsync(string email);
|
|
Task<IEnumerable<User>> GetAllAsync();
|
|
Task<IEnumerable<User>> GetByRoleAsync(UserRole role);
|
|
Task<User> CreateAsync(User user);
|
|
Task<User?> UpdateAsync(User user);
|
|
Task<bool> ExistsAsync(string email);
|
|
}
|