public void DeleteBoat(int id) { Boat boat = Boats.Find(x => x.Id == id); Boats.Remove(boat); }
/// <summary> /// Updates a members boat /// </summary> /// <param name="oldBoat">The boat to be updated</param> /// <param name="newBoat">The boat with the new information</param> public void UpdateBoat(Boat oldBoat, Boat newBoat) { oldBoat.BoatType = newBoat.BoatType; oldBoat.Length = newBoat.Length; }