Thank you Will!
I have been doing some changes to the viewsets, but am having some problems with this one.
I changed line 32 in the category viewset to this:
@foreach (var item in Model.Products.OrderBy(CreationDate))
But am getting this error:
"error CS0103: The name 'CreationDate' does not exist in the current context at System.Web.Compilation.AssemblyBuilder.Compile()"
I checked the database, and I see the 'CreationDate' column in the products table, so I assume that's what I need to use?
The problem is probably my limited knowledge of LINQ. I tried something like this, but without any better results.
@foreach (var item in Model.Products.OrderBy(CreationDate =>CreationDate))
Thanks!