Ejemplo n.º 1
0
        public void Check(string licensePlateNumber, Action <LicensePlateCheckResult> callback)
        {
            var query = _suspectCarRepository.GetReportedCarInfoByNumber(licensePlateNumber);

            var result = new LicensePlateCheckResult()
            {
                IsSuspecious       = false,
                LicensePlateNumber = licensePlateNumber
            };

            if (query != null)
            {
                result.CarInfo      = query;
                result.IsSuspecious = true;
            }

            callback(result);
        }
        public void Check(string licensePlateNumber, Action<LicensePlateCheckResult> callback)
        {
            var query = _suspectCarRepository.GetReportedCarInfoByNumber(licensePlateNumber);

            var result =  new LicensePlateCheckResult()
                            {
                                IsSuspecious = false,
                                LicensePlateNumber = licensePlateNumber
                            };

            if (query != null)
            {
                result.CarInfo = query;
                result.IsSuspecious = true;
            }

            callback(result);
        }