private void FillFeelingIfItIsNecessary(ReviewTravelFeeling feeling) { if (String.IsNullOrEmpty(feeling.Description)) { TravelFeeling existingFeeling = this._travelFeelingService.GetTravelFeelingById(feeling.FeelingId); feeling.Description = existingFeeling.Description; } this.FillReasonsIfItIsNecessary(feeling); }
public TravelFeeling GetTravelFeelingById(int feelingId) { TravelFeeling feeling = this._repository.GetFirstByConditions(x => x.FeelingId == feelingId); if (feeling == null) { throw new ObjectNotFoundException(); } return(feeling); }