/// <summary> /// Gets a list of all manufacturers using GetManufacturerFromId and a cached list of IDs /// </summary> /// <returns>List of manufacturers</returns> public List <ICarManufacturer> GetManufacturers() { List <int> idList = this.GetManufacturerIds(); List <ICarManufacturer> result = idList.ConvertAll <ICarManufacturer>(id => CarManufacturer.FromId(id)); result.RemoveAll(m => m == null); return(result); }
/// <summary> /// Backs the base.Manufacturer property /// </summary> /// <returns></returns> protected override IManufacturer GetManufacturer() { return(CarManufacturer.FromId(_manufacturerId)); }