Пример #1
0
        public List <Tour> InsertTourRatingOrComment(string UserGUID, string TourGUID, string Rating, string Comment, string UserSelfRatingID, string UserContactInfo, string ObjectionTypeID, string ObjectionComment)
        {
            int PassRating;
            int PassUserSelfRatingID;
            int PassObjectionTypeID;

            try
            {
                PassRating = Convert.ToInt32(Rating);
            }
            catch
            {
                PassRating = -999;
            }
            try
            {
                PassUserSelfRatingID = Convert.ToInt32(UserSelfRatingID);
            }
            catch
            {
                PassUserSelfRatingID = -999;
            }
            try
            {
                PassObjectionTypeID = Convert.ToInt32(ObjectionTypeID);
            }
            catch
            {
                PassObjectionTypeID = -999;
            }

            TourServices.WWTTourInsertRatingOrComment x4 = new TourServices.WWTTourInsertRatingOrComment(UserGUID, TourGUID.ToUpper(), PassRating, Comment, PassUserSelfRatingID, UserContactInfo, PassObjectionTypeID, ObjectionComment);

            List <Tour> dsWWTTourData = x4.dsTourFromCache;

            return(dsWWTTourData);
        }
Пример #2
0
    public List<Tour> InsertTourRatingOrComment(string UserGUID, string TourGUID, string Rating, string Comment, string UserSelfRatingID, string UserContactInfo, string ObjectionTypeID, string ObjectionComment)
    {
        int PassRating;
        int PassUserSelfRatingID;
        int PassObjectionTypeID; 

        try
        {
            PassRating = Convert.ToInt32(Rating);
        }
        catch
        {
            PassRating = -999;
        }
        try
        {
            PassUserSelfRatingID = Convert.ToInt32(UserSelfRatingID);
        }
        catch
        {
            PassUserSelfRatingID = -999;
        }
        try
        {
            PassObjectionTypeID = Convert.ToInt32(ObjectionTypeID);
        }
        catch
        {
            PassObjectionTypeID = -999;
        }

        TourServices.WWTTourInsertRatingOrComment x4 = new TourServices.WWTTourInsertRatingOrComment(UserGUID, TourGUID.ToUpper(), PassRating, Comment, PassUserSelfRatingID, UserContactInfo, PassObjectionTypeID, ObjectionComment);

        List<Tour> dsWWTTourData = x4.dsTourFromCache;

        return dsWWTTourData;
    }