public static DateTime?GetLastRecordExitDateByPlateNumber(string parkingID, string platenumber, out string ErrorMessage) { if (parkingID.IsEmpty()) { throw new ArgumentNullException("parkingID"); } if (platenumber.IsEmpty()) { throw new ArgumentNullException("platenumber"); } IParkIORecord factory = ParkIORecordFactory.GetFactory(); return(factory.GetLastRecordExitDateByPlateNumber(parkingID, platenumber, out ErrorMessage)); }