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