public static BDDConfiguration Charger() { BDDConfiguration configuration = new BDDConfiguration(); if (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "bdd.bin"))) { configuration = BDDConfiguration.Load(); } return(configuration); }
public ActionResult BDD() { BDDConfiguration informationsServeurDomaine = new BDDConfiguration(); if (System.IO.File.Exists(Path.Combine(Server.MapPath("~").ToString(), "bdd.bin"))) { informationsServeurDomaine = BDDConfiguration.Load(Path.Combine(Server.MapPath("~").ToString(), "bdd.bin")); } return(View(informationsServeurDomaine)); }