예제 #1
0
 public async Task <bool> AddNewPassenger(PassengerDto p)
 {
     try
     {
         var newPassenger = p.Adapt(new Data.Entity.Passenger());
         return(newPassenger != null && await _passengerRepository.CreateAsync(newPassenger));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }