public async Task <IActionResult> AddTarget([FromBody] StateTarget target) { try { var results = await _adminManager.AddTarget(target); return(Ok(results)); } catch (Exception ex) { await new RaygunClient(_settings.ApiKey).SendInBackground(ex); return(BadRequest(new { error = ex.Message })); } }