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