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)); }
private void populateList() { List <Booking> bookings = Service.GetBookingsByUser(BikenBike.CurrentUser.Id); listView.ItemsSource = bookings; }