async Task IStartDataService.AddTypeOfTours() { await _tourTypeRepository.Add(new TourType { Type = "Экскурсионный" }); await _tourTypeRepository.Add(new TourType { Type = "Лечение" }); await _tourTypeRepository.Add(new TourType { Type = "Пляжный" }); await _tourTypeRepository.Add(new TourType { Type = "Шоппинг" }); await _tourTypeRepository.Add(new TourType { Type = "Горнолыжный" }); await _tourTypeRepository.Add(new TourType { Type = "Горящий" }); }
async Task <TourTypeDTO> IService <TourTypeDTO, int> .Add(TourTypeDTO entity) { TourType tourType = await _tourTypeRepository.Add(_mapper.Map <TourTypeDTO, TourType>(entity)); return(_mapper.Map <TourType, TourTypeDTO>(tourType)); }