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