public Contracts.Tourist UpdateTourist(Contracts.Tourist tourist) { Model.Tourist efTourist = _mapper.Map <Contracts.Tourist, Model.Tourist>(tourist); _touristRepository.UpdateTourist(efTourist); return(tourist); }
public Contracts.Tourist CreateTourist(Contracts.Tourist tourist) { Model.Tourist efTourist = _mapper.Map <Contracts.Tourist, Model.Tourist>(tourist); efTourist = _touristRepository.CreateTourist(efTourist); return(_mapper.Map <Model.Tourist, Contracts.Tourist>(efTourist)); }