Esempio n. 1
0
        public List <CatItemsAr> GetAllItemsAr(string id)
        {
            ItemsDataClassesDataContext context = new ItemsDataClassesDataContext();
            var res = from r in context.CatItemsArs where r.category_id == Convert.ToInt32(id) select r;

            return(res.ToList());
        }
Esempio n. 2
0
        public List <CatsEn> GetAllCategoriesEn()
        {
            ItemsDataClassesDataContext context = new ItemsDataClassesDataContext();
            var res = from r in context.CatsEns select r;

            return(res.ToList());
        }