public async Task <IActionResult> DeleteDistrict(int id) { try { var results = await _adminManager.DeleteDistrict(id); return(Ok(results)); } catch (Exception ex) { await new RaygunClient(_settings.ApiKey).SendInBackground(ex); return(BadRequest(new { error = ex.Message })); } }