Exemple #1
0
 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;
     }
 }
Exemple #2
0
 public List<Boat> GetBoats()
 {
     UserDAL usrDAL = new UserDAL();
     return usrDAL.GetBoats();
 }