public IActionResult FindByTourId([FromQuery] YachtTourNonOperationDaySearchModel searchModel)
        {
            var tourId       = DecryptValue(searchModel.yachtTourIdEncrypted);
            var baseresponse = _yachtTourNonOperationDayService.FindByTourFid(tourId, searchModel);

            if (baseresponse.IsSuccessStatusCode)
            {
                return(Ok(baseresponse));
            }
            return(BadRequest());
        }
        public BaseResponse <PagedList <YachtTourNonOperationDayViewModel> > FindByTourFid(int tourId, YachtTourNonOperationDaySearchModel searchModel)
        {
            try
            {
                var query = _db.YachtTourNonOperationDays
                            .AsNoTracking()
                            .Where(k => !k.Deleted && k.YachtTourFid == tourId)
                            .Select(k => _mapper.Map <YachtTourNonOperationDays, YachtTourNonOperationDayViewModel>(k));
                var totlaItems = query.Count();

                var queryData = query.Skip(searchModel.PageSize * (searchModel.PageIndex - 1))
                                .Take(searchModel.PageSize)
                                .ToList();

                if (queryData != null)
                {
                    var data      = queryData.Select(k => LoadYachtName(k)).ToList();
                    var pagedList = new PagedList <YachtTourNonOperationDayViewModel>(data, totlaItems, searchModel.PageIndex, searchModel.PageSize);
                    return(BaseResponse <PagedList <YachtTourNonOperationDayViewModel> > .Success(pagedList));
                }

                return(BaseResponse <PagedList <YachtTourNonOperationDayViewModel> > .BadRequest());
            }
            catch (Exception ex)
            {
                return(BaseResponse <PagedList <YachtTourNonOperationDayViewModel> > .InternalServerError(message : ex.Message, fullMsg : ex.StackTrace));
            }
        }