Beispiel #1
0
        public ActionResult Index()
        {
            var retour = m_repo.SelectAllProduit();

            var search = new string[] { "Benne", "Colis" };

            return(View(retour.Where(a => search.Any(s => a.Type_Produit_ID.Contains(s)))));
        }
        //private ConnexionDb db = new ConnexionDb();

        // GET api/Produit
        public IEnumerable <Produit> GetProduits()
        {
            var retour = m_repo.SelectAllProduit();

            var search = new string[] { "Benne", "Colis" };

            return(retour.Where(a => search.Any(s => a.Type_Produit_ID.Contains(s))));
        }