/// <summary>
 /// Funtion to add rides for userID
 /// </summary>
 /// <param name="userId"></param>
 /// <param name="rides"></param>
 public void AddRides(string userId, Ride[] rides)
 {
     try
     {
         rideRepository.AddRide(userId, rides);
     }
     catch (CabInvoiceException)
     {
         throw new CabInvoiceException(CabInvoiceException.ExceptionType.NULL_RIDES, "Null Rides");
     }
 }
Exemplo n.º 2
0
 public void AddRides(string userID, Ride[] rides)
 {
     try
     {
         rideRepository.AddRide(userID, rides);
     }
     catch (CabInvoiceException)
     {
         if (rides == null)
         {
             throw new CabInvoiceException(CabInvoiceException.ExceptionType.NULL_RIDES, "rides are null");
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Function to Add Rides For UserId.
 /// </summary>
 /// <param name="userId"></param>
 /// <param name="rides"></param>
 public void AddRides(string userId, Ride[] rides)
 {
     try
     {
         //Adding Ride To The Specified User.
         rideRepository.AddRide(userId, rides);
     }
     catch (CabInvoiceException)
     {
         if (rides == null)
         {
             throw new CabInvoiceException(CabInvoiceException.ExceptionType.NULL_RIDES, "Rides Are Null");
         }
     }
 }