public IActionResult Delete(string connectionId) { try { var result = _connectionRepository.DeleteById <ConnectionModel>(connectionId); _connectionRepository.UnlinkOptions(connectionId, EntityType.Connection); _transaction.Commit(); return(Ok(result)); } catch { _transaction.Rollback(); throw; } }