public async Task <Response <IList <PsychologistDto> > > Handle(GetAllPsychologistsQuery request, CancellationToken cancellationToken)
        {
            var psychologists = await _context.Psychologists.AsNoTracking()
                                .ToListAsync(cancellationToken);

            if (psychologists is null)
            {
                return(Response.Fail <IList <PsychologistDto> >("Problem occured while fetching data!"));
            }

            var result = _mapper.Map <IList <PsychologistDto> >(psychologists);

            return(Response.Success <IList <PsychologistDto> >(result, "Psychologists are fetched successfully."));
        }
        public async Task <IActionResult> GetAll()
        {
            var query = new GetAllPsychologistsQuery();

            return(Ok(await Mediator.Send(query)));
        }