Ejemplo n.º 1
0
        public ActionResult <object> GetAllEventDefinitions()
        {
            var events    = _eventDefinitionService.GetAll();
            var staticIDs = EventDefinitionService.StaticEvents.Select(x => x.Key).ToArray();
            var container = new { AllEvents = events, StaticIDs = staticIDs };

            return(container);
        }
        public ViewResult EventDefinitions()
        {
            var model = _eventDefinitionService.GetAll();

            return(View(model));
        }