private static bool IsExistInReport(int travelingIdDriver, DateTime dateInRange)
        {
            TravelReportingDTO travelReporting = TravelReportingConverters.GetTravelReportingDTO(TravelReportingDal.GetTravelReport(travelingIdDriver, dateInRange));

            if (travelReporting == null)
            {
                return(false);
            }
            return(true);
        }
        private static void AddComplaint(RegisterationDTO registeration, DateTime dateInRange, int idRegDate)
        {
            TravelReportingDTO travelReporting = TravelReportingConverters.GetTravelReportingDTO(TravelReportingDal.AddComplaint(registeration.travelingIdDriver, dateInRange));

            if (travelReporting.NumComplainants >= travelReporting.NumPassengers / 2)
            {
                List <RegisterationDTO> allReg = GetAllRegOfTravel(registeration.travelingIdDriver, dateInRange);

                foreach (var reg in allReg)
                {
                    PaymentBL.PayToPassengerCancel(reg, dateInRange, dateInRange);
                }
                TravelReportingDal.UpdatePay(travelReporting.IdTravelingDriver, travelReporting.Date);
            }
        }