public IQueryable<brdhc_JobCategory> getCategoryByID(Guid catID) { careerCategoryDataContext objCat = new careerCategoryDataContext(); var singleCat = objCat.brdhc_JobCategories.Where(x => x.JobCategoryId == catID).Select(x => x); return singleCat; }
public IQueryable<brdhc_JobCategory> getCategories() { careerCategoryDataContext objCat = new careerCategoryDataContext(); var allCats = objCat.brdhc_JobCategories.Select(x => x); return allCats; }