예제 #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());
        }
예제 #2
0
        public List <CatsEn> GetAllCategoriesEn()
        {
            ItemsDataClassesDataContext context = new ItemsDataClassesDataContext();
            var res = from r in context.CatsEns select r;

            return(res.ToList());
        }