public static int GetMonthIORecordCountByPlateNumber(string parkingID, string plateNumber, DateTime datetime, out string ErrorMessage) { if (parkingID.IsEmpty()) { throw new ArgumentNullException("parkingID"); } IParkIORecord factory = ParkIORecordFactory.GetFactory(); return(factory.GetMonthIORecordCountByPlateNumber(parkingID, plateNumber, datetime, out ErrorMessage)); }