public int CreateTourPackage(string tourname, string image, string tourdescription, string tourduration, string tourlocation, string touroriginalprice, string tourdiscountprice) { TourPackageDAO dao = new TourPackageDAO(); int result = dao.CreateTourPackage(tourname, image, tourdescription, tourduration, tourlocation, touroriginalprice, tourdiscountprice); return(result); }
public int AverageRating(string tourname, string tourrating) { return(TourPackageDAO.UpdateAverageRating(tourname, tourrating)); }
public int updatecounter(string userid, string purchasecounter) { return(TourPackageDAO.UpdateCounter(userid, purchasecounter)); }
public int UpdateTourPackage(string tourid, string tourname, string image, string tourdescription, string tourduration, string tourlocation, string touroriginalprice, string tourdiscountprice) { return(TourPackageDAO.UpdateTourPackage(tourid, tourname, image, tourdescription, tourduration, tourlocation, touroriginalprice, tourdiscountprice)); }
//public List<TourPackage> ViewAllTourPackage() //{ // TourPackageDAO dao = new TourPackageDAO(); // return dao.SelectAll(); //} public TourPackage GetPackageById(string tourid) { return(TourPackageDAO.SelectById(tourid)); }