示例#1
0
        public async Task <IEnumerable <MyDrugIncomePrice> > GetMyLastIncomePriceAsync(IList <int> drugids, int stationId)
        {
            if (drugids.Count == 0)
            {
                return(new List <MyDrugIncomePrice>());
            }
            else
            {
                var dal = new DAL.DrugsDAL();
                var tb  = await dal.GetMyLastIncomePrice(drugids, stationId);

                return(dal.ConvertToList <MyDrugIncomePrice>(tb));
            }
        }
示例#2
0
        public async Task <IEnumerable <MyDrugIncomePrice> > GetMyLastIncomePriceAsync(IEnumerable <vwCHIS_Code_Drug_Main> drugs, int stationId)
        {
            var drugids = drugs.Select(m => m.DrugId).ToList();

            if (drugids.Count == 0)
            {
                return(new List <MyDrugIncomePrice>());
            }
            else
            {
                var dal = new DAL.DrugsDAL();
                var tb  = await dal.GetMyLastIncomePrice(drugids, stationId);

                return(dal.ConvertToList <MyDrugIncomePrice>(tb));
            }
        }