Пример #1
0
        public IList <SPP_ProductTrans_Result> GetAllProductByIdBrand(int id, int language)
        {
            List <SPP_ProductTrans_Result> productList = new List <SPP_ProductTrans_Result>();

            productList = db.SPP_ProductTrans(language).Where(p => p.brandId == id).ToList();
            return(productList);
        }
Пример #2
0
        public List <SPP_ProductTrans_Result> GetAllProductByCode(string codeProduct, int language)
        {
            List <SPP_ProductTrans_Result> productList = new List <SPP_ProductTrans_Result>();

            productList = db.SPP_ProductTrans(language).Where(p => p.barcode.Contains(codeProduct)).ToList();
            return(productList);
        }