Exemple #1
0
 /// <summary>
 /// This method returns price per night of a given booking id.
 /// </summary>
 public decimal Get_PricePerNight_For_BookingId(long booking_id)
 {
     try
     {
         var pricePerNight = RDM.Get_PricePerNight(booking_id.ToString());
         return(Convert.ToDecimal(pricePerNight));
     }
     catch (FormatException ex1)
     {
         throw new Exception(C.DATA_CONVERSION_EXP + ex1.Message);
     }
     catch (Exception ex2)
     {
         throw new Exception(ex2.Message);
     }
 }