public Article(DataBaseArticle databaseArticle) { Reference = databaseArticle.Reference; Designation = databaseArticle.Designation; PrixVente = databaseArticle.PrixVente; QteStock = databaseArticle.QteStock; IsVisible = !databaseArticle.Sommeil; }
public Article RechercheParRef(string reference) { DataBaseArticle dbTempArticle = DbManager.RechercheParRef(reference); if (dbTempArticle == null) { return(null); } else { return(new Article(dbTempArticle)); } }