Exemple #1
0
        /// <summary>
        /// Backs the base.Ranges property
        /// </summary>
        /// <returns></returns>
        protected override List <IRange> GetAllRanges()
        {
            ICarProvider carProvider = new CarProvider();

            return((ListOfRange)carProvider.GetRangesByManufacturerId(_id));
        }
Exemple #2
0
        /// <summary>
        /// Get a CarManufacturer from a CARManId
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        internal static ICarManufacturer FromId(int id)
        {
            ICarProvider carProvider = new CarProvider();

            return(carProvider.GetManufacturerFromId(id));
        }
Exemple #3
0
        /// <summary>
        /// Backs the base.Models property
        /// </summary>
        /// <returns></returns>
        protected override List <IModel> GetAllModels()
        {
            ICarProvider carProvider = new CarProvider();

            return((ListOfModel)carProvider.GetModelsByManufacturerId(_id));
        }