// GET: Attractions
        public ActionResult Index()
        {
            //Attraction hi = new Attraction();

            //hi.atName = "nice to meet you";

            //Attraction input1 = new Attraction();
            //Attraction input2 = new Attraction();
            //Attraction input3 = new Attraction();
            //Attraction input4 = new Attraction();
            //Attraction input5 = new Attraction();
            //Attraction input6 = new Attraction();
            //Attraction input7 = new Attraction();
            //Attraction input8 = new Attraction();
            //Attraction input9 = new Attraction();
            //Attraction input10 = new Attraction();

            //input1.atName = "S.E.A. Aquarium"; input1.atDes = "Discover the awe-inspiring world of life in the ocean at the world’s largest aquarium. Step into S.E.A."; input1.atType = "Family"; input1.atLocLat = "1.2583091"; input1.atLocLat = "103.8205066";
            //input2.atName = "Dolphin Island"; input2.atDes = "Dolphin Island™ offers a range of programmes that gives you the opportunity to interact with Indo-Pacific Bottlenose dolphins and to learn about them. "; input2.atType = "Family"; input2.atLocLat = "1.2581827"; input2.atLocLat = "1.2581827";
            //input3.atName = "Skyline Luge Sentosa"; input3.atDes = "Invented in New Zealand over 29 years ago, and having hosted over 31 million rides worldwide, Skyline Luge Sentosa is the first-ever Luge introduced in Southeast Asia."; input3.atType = "Fun"; input3.atLocLat = "1.2520053"; input3.atLocLat = "103.8168874";
            //input4.atName = "Adventure Cove Waterpark"; input4.atDes = "Promising endless splashes of fun, Adventure Cove Waterpark is an aquatic adventure park with something for everyone. "; input4.atType = "Fun"; input4.atLocLat = "1.2580789"; input4.atLocLat = "103.8207051";
            //input5.atName = "Cranes Dance"; input5.atDes = "Watch the magical love story between a pair of mechanical cranes and how their love for each other transforms them into real birds"; input5.atType = "Family"; input5.atLocLat = "1.258626"; input5.atLocLat = "103.82193";
            //input6.atName = "Tiger Sky Tower truly"; input6.atDes = "Singapore's tallest observatory tower is a distinctive landmark, soaring high above the surrounding natural greenery."; input6.atType = "Family"; input6.atLocLat = "1.2549754"; input6.atLocLat = "103.8175937";
            //input7.atName = "Sentosa 4D Adventure Land"; input7.atDes = "Home to UNLIMITED FUN! Go on in an immersive 4-D movie, Journey 2: The Mysterious Island, The 4-D Experience. "; input7.atType = "Fun"; input7.atLocLat = "1.255284"; input7.atLocLat = "103.816766";
            //input8.atName = "Trick Eye Museum"; input8.atDes = "Trick Eye Museum is an attraction for people of all ages coming together with friends, families and their loved ones. Embark on the adventure as you enter the 3D Battlefield."; input8.atType = "Family"; input8.atLocLat = "1.256988"; input8.atLocLat = "103.84226729";
            //input9.atName = "Port of Lost Wonder"; input9.atDes = "Port of Lost Wonder"; input9.atType = "Family"; input9.atLocLat = "1.2505248"; input9.atLocLat = "103.8198936";
            //input10.atName = "Universal Studios Singapore"; input10.atDes = "Designed to provide a unique experience of family bonding, the attraction houses a signature water play area, themed islets for picnics and leisure activities and distinctive retail and dining experiences for the very young and young at heart."; input10.atType = "Fun"; input10.atLocLat = "1.2540421"; input10.atLocLat = "103.8238084";

            //dataGateway.Insert(input1);
            //dataGateway.Insert(input2);
            //dataGateway.Insert(input3);
            //dataGateway.Insert(input4);
            //dataGateway.Insert(input5);
            //dataGateway.Insert(input6);
            //dataGateway.Insert(input7);
            //dataGateway.Insert(input8);
            //dataGateway.Insert(input9);
            //dataGateway.Insert(input10);


            //dataGateway.Insert(hi);
            //    dataGateway.Save();

            return(View(dataGateway.SelectAll()));
        }
Пример #2
0
        // GET: Loan
        public ActionResult Index()
        {
            // Creating loan from checkout
            if (TempData.ContainsKey("Cart"))
            {
                Loan loan = new Loan();
                loan.books = TempData["Cart"] as List <Book>;

                loan.dateOfLoan   = DateTime.Today;
                loan.loanQuantity = loan.books.Count;
                loan.loanStatus   = "On Loan";
                DataGateway.Insert(loan);
            }
            return(View(DataGateway.SelectAll()));
        }
 //display ticket list
 public ActionResult test()
 {
     return(View(ticketDataGateway.SelectAll()));
 }
Пример #4
0
 // GET: LibrarianBook
 public ActionResult Index()
 {
     return(View(bookDataGateway.SelectAll()));
 }
Пример #5
0
        public virtual IActionResult Index(int?value)
        {
            var data = dataGateway.SelectAll();

            return(View(data));
        }