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)); }
public ActionResult GetEventByPrice(double price) { ViewBag.PriceSearch = "Sorted by Price: $" + price; return(View("../UserEvent/Index", TicketMasterApiAppDAL.GetEventsByPrice(price))); }
public bool AddToFavorite(string id) { return(UserFavoroiteDBDAL.AddUserFavorite(new Event(TicketMasterApiAppDAL.GetEventById(id)), User.Identity.Name)); }
public ActionResult EventById(string id) { return(View(TicketMasterApiAppDAL.GetEventById(id))); }