public List <DataContracts.Recette> GetRecetteFromProducts(List <DataContracts.Product> products) { string query = string.Format("SELECT * FROM RECIPE"); using (SqlCommand cmd = AccessBD.Connection.CreateCommand()) { cmd.CommandText = query; using (IDataReader reader = cmd.ExecuteReader()) { List <Recette> recettes = MapRECIPE(reader); return(RecetteSelector.SelectBestRecettes(recettes, products)); } } }
public List <Recette> GetRecetteFromProducts(List <Product> products) { return(RecetteSelector.SelectBestRecettes(GetAll(), products)); }