public void ReloadAll() { OnInfoFromCore("Controller: Reloading VPN", false); try { ListClients = VpnManagerDal.GetCustomers().ToDictionary(x => x.Id); ListPlants = VpnManagerDal.GetPlants().ToDictionary(f => f.Id); ListConnectionsType = VpnManagerDal.GetConnectionTypes().ToDictionary(g => g.Id); VpnTypes = VpnManagerDal.GetVpnTypes().ToDictionary(j => j.Id); // OnInfoFromCore("Core: Loaded Completed", false); } catch (Exception e) { OnInfoFromCore("Controller: Error in Loading Vpn", false); OnInfoFromCore(e.Message, false); } }