public bool DeleteBoat(int p) { UserDAL usrDAL = new UserDAL(); List<Boat> boatList = usrDAL.GetBoats(); if (boatList.Exists(x => x.BoatID == p)) { usrDAL.DeleteBoat(p); return true; } else { return false; } }
public List<Boat> GetBoats() { UserDAL usrDAL = new UserDAL(); return usrDAL.GetBoats(); }