Exemple #1
0
 public List <Medicine> GetAllMedicines(Func <Medicine, bool> predicate = null)
 {
     try
     {
         List <Medicine> res = IDalService.GetAllMedicines();
         return(res);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
 public List <string> GetAllMedicinesNames()
 {
     try
     {
         var names = (from item in IDalService.GetAllMedicines()
                      select item.CommercialName).ToList();
         return(names);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #3
0
 public List <string> GetAllMedicineId()
 {
     try
     {
         var ids = (from item in IDalService.GetAllMedicines()
                    select item.Id).ToList();
         return(ids);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }