This seems so basic and I can't for the life of me figure it out.
Working with .net MVC5 I have a route /{categoryName}/ and I am trying to get all subcategories in a given {categoryName} to display.
Right now I have and am returning the subcategory id numbers:
var subCategoriesInCategory =
from cat in db.Categories
join subcat in db.SubCategories
on cat.CategoryId equals subcat.CategoryId
where (cat.CategoryName == categoryName)
select (subcat);
I'm sure this is basic for someoone proficient in SQL, but ...
Thanks