示例#1
0
        /// <summary>
        /// Return a random picture in relation with the hotel
        /// </summary>
        public static string GetUrlPicture(int idHotel)
        {
            List <Picture> pictures = PictureDB.GetPicturesForHotel(idHotel);

            Random rnd = new Random();
            int    r   = rnd.Next(pictures.Count);

            return(pictures[r].Url);
        }
示例#2
0
        /// <summary>
        /// Return a list of pictures in relation with the hotel
        /// </summary>
        public static List <Picture> GetPictures(int idHotel)
        {
            List <Picture> pictures = PictureDB.GetPicturesForHotel(idHotel);

            return(pictures);
        }