예제 #1
0
        private void FillFeelingIfItIsNecessary(ReviewTravelFeeling feeling)
        {
            if (String.IsNullOrEmpty(feeling.Description))
            {
                TravelFeeling existingFeeling = this._travelFeelingService.GetTravelFeelingById(feeling.FeelingId);

                feeling.Description = existingFeeling.Description;
            }

            this.FillReasonsIfItIsNecessary(feeling);
        }
예제 #2
0
        public TravelFeeling GetTravelFeelingById(int feelingId)
        {
            TravelFeeling feeling = this._repository.GetFirstByConditions(x => x.FeelingId == feelingId);

            if (feeling == null)
            {
                throw new ObjectNotFoundException();
            }

            return(feeling);
        }