public async Task <IActionResult> CreateNotificationIncident([FromBody] IncidentsWrapper wrapper) { try { IncidentsWrapper incidents = new IncidentsWrapper() { incidents = await _dao.AddIncidents(wrapper.incidents) }; return(new OkObjectResult(incidents)); } catch (Exception e) { _logger.LogInformation($"Error creating notification incident. The error was: {e.Message}, stack trace was: {e.StackTrace}"); return(BadRequest($"Error creating notification incident. The error was: {e.Message}")); } }