public async Task <IActionResult> DeleteNetwork(string id) { try { if (!string.IsNullOrEmpty(id)) { await _networkRepository.DeleteAsync(id); await _keyValuesRepository.RemoveNetworkOverridesAsync(id); } return(JsonRequestResult(".editItems", Url.Action("List"))); } catch (Exception ex) { _log.Error(ex, context: id); return(JsonRequestResult(".editItems", Url.Action("List"))); } }