Example #1
0
        private bool IsThereSiteAvaliableByVehicleType(string type)
        {
            int count = vehiclesRepository.GetCountByVehicleType(type);

            return((type == InfoConstants.car && count == InfoConstants.carLimit) ||
                   (type == InfoConstants.motorbike && count == InfoConstants.motorbikeLimit));
        }