Esempio n. 1
0
        //
        // GET: /Image/

      

        //
        // GET: /Image/Details/5

    

        //
        // GET: /Image/Create

        public ActionResult Create(string hotelId)
        {
           // hotelId = "48385";
            ViewBag.HotelId = hotelId;
            ViewData["ImageTypes"] = new hotel_picture_info().getImageType();
            getRooms(Convert.ToInt32(hotelId));
            return View();
        }
Esempio n. 2
0
 //图片
 public ActionResult Image(string hotelId,string result)
 {
     ViewBag.sign = result;
     int.TryParse(hotelId, out hotel_id);
     ViewBag.HotelId = hotelId;
     ViewData["rooms"] = DBhelp.getRooms(hotel_id);
     ViewData["ImageTypes"] = new hotel_picture_info().getImageType();
     int[]rf = (from r in db.rooms where r.hotel_id == hotel_id select r.room_id).ToArray();           
     return View((from image in db.roomImages where rf.Contains(image.room_id) select image).ToList()); 
 }