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