public static IQueryable<JOBCATEGORY> GetCategory() { var db = new TKTv2JobEntities(); var CategoryQry = from c in db.JOBCATEGORies.ToList() select new JOBCATEGORY { CategoryId = c.CategoryId, Category = c.Category }; return CategoryQry.AsQueryable(); }
public IEnumerable<JOBCATEGORY> getCategory() { var category = HelpDeskRepository.GetCategory(); return category.ToList(); }
self.categoryList=ko.observableArray([]); $.getJSON("api/helpdeskapi/getCategory", function (data) { $.each(data, function (key, val) { self.categoryList.push(); }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)