public Contracts.TourType UpdateTourType(Contracts.TourType tourType) { Model.TourType efTourType = _mapper.Map <Contracts.TourType, Model.TourType>(tourType); _tourTypeRepository.UpdateTourType(efTourType); return(tourType); }
public Contracts.TourType CreateTourType(Contracts.TourType tourType) { Model.TourType efTourType = _mapper.Map <Contracts.TourType, Model.TourType>(tourType); efTourType = _tourTypeRepository.CreateTourType(efTourType); return(_mapper.Map <Model.TourType, Contracts.TourType>(efTourType)); }