public static double RoomPrice(SailsModule module, RoomClass rclass, RoomTypex rtype, SailsTrip trip, Cruise cruise, TripOption option, DateTime startDate) { if (trip == null) { return(0); } SailsPriceConfig rolePrice = module.SailsPriceConfigGet(rclass, rtype, trip, cruise, option, startDate, BookingType.Double, null); if (rolePrice != null) { return(rolePrice.NetPrice); } SailsPriceConfig priceConfig = module.SailsPriceConfigGet2(rclass, rtype, trip, cruise, option, startDate, BookingType.Double, null); if (priceConfig != null) { return(priceConfig.NetPrice * MARK_UP); } return(-1); }