Exemple #1
0
 public Contracts.Tourist UpdateTourist(Contracts.Tourist tourist)
 {
     Model.Tourist efTourist = _mapper.Map <Contracts.Tourist, Model.Tourist>(tourist);
     _touristRepository.UpdateTourist(efTourist);
     return(tourist);
 }
Exemple #2
0
 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));
 }