Beispiel #1
0
 public void AddRides(string userId, Ride[] rides)
 {
     try
     {
         rideRepository.AddRides(userId, rides);
     }
     catch (CabInvoiceException)
     {
         if (rides == null)
         {
             throw new CabInvoiceException(CabInvoiceException.ExceptionType.NULL_RIDE, "Rides are null");
         }
     }
 }
 /// <summary>
 /// UC 4 Adds the rides.
 /// </summary>
 /// <param name="userId">The user identifier.</param>
 /// <param name="rides">The rides.</param>
 public void AddRides(string userId, List <Ride> rides)
 {
     repository.AddRides(userId, rides);
 }