public IActionResult EventDetail(string id)
        {
            EventModel eventModel = EventConnection.InformationEvent(id);

            ViewBag.eventInformation = eventModel;
            return(View());
        }
 public IActionResult Index()
 {
     CategoryModel[] listCategories = CategoryConnection.GetCategories();
     EventModel[]    listEvents     = EventConnection.GetEvents();
     ViewBag.listEvents     = listEvents;
     ViewBag.listCategories = listCategories;
     return(View());
 }
        public IActionResult CreateEvents(string name, string image, CategoryModel[] categories, string start, string end, string address, string referenceLocation, Zone[] zona)
        {
            bool result = false;


            result = EventConnection.CreateEvent(name, image, categories, start, end, address, referenceLocation, zona);


            return(result ? RedirectToAction("InformationPublisherEvent", "User") : RedirectToAction("CreateEvents", "Event"));
        }