Exemplo n.º 1
0
        public void DeleteBoat(int id)
        {
            Boat boat = Boats.Find(x => x.Id == id);

            Boats.Remove(boat);
        }
Exemplo n.º 2
0
 /// <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;
 }