Exemple #1
0
 public List <Entity.Produit> GetProduitsByPlatId(Entity.Plat plat)
 {
     try
     {
         return(_productDAL.GetProduitsByPlat(plat));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #2
0
        public List <Entity.Plat> GetAllPlat()
        {
            try
            {
                List <Entity.Plat> list = _platDAL.GetAllPlat();

                foreach (Entity.Plat p in list)
                {
                    p.SetListProduits(_produitDAL.GetProduitsByPlat(p));
                }

                return(list);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }