Ejemplo n.º 1
0
        public ActionResult ViewBookings()
        {
            var            userId   = Session["ID"];
            List <Booking> bookings = client.GetBookingsByUser(Convert.ToInt32(userId));

            if (bookings == null)
            {
                bookings = new List <Booking>();
            }

            return(View(bookings));
        }
Ejemplo n.º 2
0
        private void populateList()
        {
            List <Booking> bookings = Service.GetBookingsByUser(BikenBike.CurrentUser.Id);

            listView.ItemsSource = bookings;
        }