Exemplo n.º 1
0
        public ActionResult Index()
        {
            JObject data = TicketMasterApiAppDAL.GetData("https://app.ticketmaster.com/discovery/v2/events.json?countryCode=US&");

            List <Event> favs = new List <Event>();

            foreach (JObject c in data["_embedded"]["events"])
            {
                favs.Add(new Event(c));
            }

            return(View(favs));
        }
Exemplo n.º 2
0
        public ActionResult GetEventByPrice(double price)
        {
            ViewBag.PriceSearch = "Sorted by Price: $" + price;

            return(View("../UserEvent/Index", TicketMasterApiAppDAL.GetEventsByPrice(price)));
        }
Exemplo n.º 3
0
 public bool AddToFavorite(string id)
 {
     return(UserFavoroiteDBDAL.AddUserFavorite(new Event(TicketMasterApiAppDAL.GetEventById(id)), User.Identity.Name));
 }
Exemplo n.º 4
0
 public ActionResult EventById(string id)
 {
     return(View(TicketMasterApiAppDAL.GetEventById(id)));
 }