Пример #1
0
 public List <Medicine> GetAllMedicines(Func <Medicine, bool> predicate = null)
 {
     try
     {
         List <Medicine> res = IDalService.GetAllMedicines();
         return(res);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #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;
     }
 }
Пример #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;
     }
 }