public bool AddElectricToList(Electric electric)
        {
            int startingCount = _listofElectric.Count;

            _listofElectric.Add(electric);
            bool wasAdded = (_listofElectric.Count > startingCount) ? true : false;

            return(wasAdded);
        }
        public bool UpdateExistingElectric(string originalModel, Electric newElectric)
        {
            Electric oldElectric = GetElectricByModel(originalModel);

            if (oldElectric != null)
            {
                oldElectric.Make           = newElectric.Make;
                oldElectric.Model          = newElectric.Model;
                oldElectric.FuelEfficiency = newElectric.FuelEfficiency;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public bool RemoveElectricFromList(string model)
        {
            Electric electric = GetElectricByModel(model);

            if (electric == null)
            {
                return(false);
            }
            int initialCount = _listofElectric.Count();

            _listofElectric.Remove(electric);
            if (initialCount > _listofElectric.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }