public async Task <ActionResult> CreateEvent([FromBody] EventDefinition newEvent)
        {
            await _eventDefinitionService.Create(newEvent);

            return(Ok());
        }
 public ActionResult AddEvent(EventDefinition eventDefinition)
 {
     _eventDefinitionService.Create(eventDefinition);
     return(RedirectToAction("EventDefinitions"));
 }
Beispiel #3
0
 public ActionResult CreateEvent([FromBody] EventDefinition newEvent)
 {
     _eventDefinitionService.Create(newEvent);
     return(Ok());
 }