public async Task <BasePagingDto <ReservationDto> > GetReservationBySearch(int userId, SearchReservationRequest request, int currentPage, int pageSize)
        {
            var listReservation = await _reservationRepository.GetReservationBySearch(userId, request);

            var lisReservationDto = _mapper.Map <List <ReservationDto> >(listReservation);

            var result = MakePaging.ReservationDtoToPaging(lisReservationDto, currentPage, pageSize);

            return(result);
        }
        public async Task <BasePagingDto <ReservationDto> > GetYourReservation(int userId, int currentPage, int pageSize)
        {
            var reservations = await _reservationRepository.GetYourReservation(userId);

            var list = _mapper.Map <List <ReservationModel>, List <ReservationDto> >(reservations, opt =>
            {
                opt.AfterMap((src, dest) =>
                {
                    foreach (var d in dest)
                    {
                        d.Image = src[0].StoreModel.Image;
                    }
                });
            });
            var result = MakePaging.ReservationDtoToPaging(list, currentPage, pageSize);

            return(result);
        }