public async Task <ActionResult> CreateDownloadEvent([FromBody] DownloadEvent downloadEvent) { try { DownloadEvent createdEvent = await _service.CreateDownloadEvent(downloadEvent); return(CreatedAtRoute(nameof(GetEvent), new { id = createdEvent.Id }, createdEvent)); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } }