public void DeleteBoat(int id) { Boat boat = Boats.Find(x => x.Id == id); Boats.Remove(boat); }
public Boat GetBoat(int id) { return(Boats.Find(x => x.Id == id)); }