Example #1
0
        private void SetTour(TourDto dto)
        {
            if (dto.Excursion != null)
            {
                var ex = _excursionService.SetExcursion(dto.Excursion.Name, dto.Excursion.ExcursionSights);
                dto.Excursion = _excursionService.Get(ex);
            }

            if (dto.Client != null && dto.Client.Id == Guid.Empty)
            {
                var cl = _clientSerivce.SetClient(dto.Client.Name);
                dto.Client = _clientSerivce.Get(cl);
            }
        }