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")); }
public ActionResult CreateEvent([FromBody] EventDefinition newEvent) { _eventDefinitionService.Create(newEvent); return(Ok()); }