public Car GetCar(string registrationNumber)
 {
     return(AllCars.FirstOrDefault(x => x.RegistrationNumber == registrationNumber));
 }
Esempio n. 2
0
        /// <summary>
        /// Найти авто по гос. номеру.
        /// </summary>
        /// <param name="searchNumber"></param>
        /// <returns></returns>
        public Car SearchCarViaNumber(string searchNumber)
        {
            LoggerMaster.LoggerM.Debug("In class: " + nameof(TaxiStation) + " : " + "Try call: " + MethodBase.GetCurrentMethod());

            return(AllCars.FirstOrDefault(c => c.Number == searchNumber));
        }