IUserRepository.cs 1.31 KB
Newer Older
Almouhannad's avatar
Almouhannad committed
1 2 3 4 5 6 7 8
using Domain.Entities.Identity.Users;
using Domain.Repositories.Base;
using Domain.Shared;

namespace Domain.Repositories;

public interface IUserRepository : IRepository<User>
{
9

Almouhannad's avatar
Almouhannad committed
10
    public Task<Result<User>> GetByUserNameFullAsync(string userName);
11

Almouhannad's avatar
Almouhannad committed
12
    #region Verify password
13
    public Task<Result<User?>> VerifyPasswordAsync(string userName, string password);
Almouhannad's avatar
Almouhannad committed
14
    #endregion
Almouhannad's avatar
Almouhannad committed
15

16 17
    #region Doctor users

Almouhannad's avatar
Almouhannad committed
18
    #region Get doctor user by user name full
Almouhannad's avatar
Almouhannad committed
19
    public Task<Result<DoctorUser>> GetDoctorUserByUserNameFullAsync(string userName);
Almouhannad's avatar
Almouhannad committed
20 21 22

    #endregion

23 24 25 26 27 28 29 30 31 32 33 34
    #region Get all doctors 
    public Task<Result<ICollection<DoctorUser>>> GetAllDoctorUsersAsync();
    #endregion

    #region Register doctor
    public Task<Result<DoctorUser>> RegisterDoctorAsync(DoctorUser doctorUser);
    #endregion

    #endregion

    #region Receptionists users

Almouhannad's avatar
Almouhannad committed
35
    #region Get receptionist user by user name full
Almouhannad's avatar
Almouhannad committed
36
    public Task<Result<ReceptionistUser>> GetReceptionistUserByUserNameFullAsync(string userName);
Almouhannad's avatar
Almouhannad committed
37 38 39

    #endregion

40 41
    #region Get all Receptionist Users
    public Task<Result<ICollection<ReceptionistUser>>> GetAllReceptionistUsersAsync();
Almouhannad's avatar
Almouhannad committed
42 43 44 45 46 47 48
    #endregion

    #region Register receptionist
    public Task<Result<ReceptionistUser>> RegisterReceptionistAsync(ReceptionistUser receptionistUser);

    #endregion

49 50 51
    #endregion


Almouhannad's avatar
Almouhannad committed
52
}