public async Task <IActionResult> Get() { try { var result = await _eventStoreService.GetEvents(); return(Ok(result)); } catch (Exception) { return(StatusCode((int)HttpStatusCode.InternalServerError, "Something went wrong while getting all the events. Please try again in a while.")); } }