public IEnumerable <subcategory> SubCategory(int id) { return(bllService.GetSubcategoryByCategory(id).Select(c => new subcategory { subcategoryID = c.subcategoryID, subcategoryName = c.subcategoryName })); }