public IEnumerable <Medicament> GetMedicamentByFamille(Famille f)
 {
     if (f != null)
     {
         return(MedicamentDao.GetMedicamentByFamille(f));
     }
     return(null);
 }
Example #2
0
 public Famille DeleteFamille(Famille del, User user)
 {
     if (del != null)
     {
         List <Medicament> list = MedicamentDao.GetMedicamentByFamille(del).ToList();
         if (list.Count == 0)
         {
             Famille f = FamilleDao.DeleteFamille(del);
             if (f == null)
             {
                 logger.Info(user.Login + " a supprime la famille " + del.Designation);
                 return(null);
             }
         }
     }
     return(del);
 }