diff --git a/Yavsc/Controllers/BlogspotController.cs b/Yavsc/Controllers/BlogspotController.cs index 225834d6..dbb7ac13 100644 --- a/Yavsc/Controllers/BlogspotController.cs +++ b/Yavsc/Controllers/BlogspotController.cs @@ -47,7 +47,7 @@ namespace Yavsc.Controllers return UserPosts(id); return View(_context.Blogspot.Include( b => b.Author - ).Where(p => p.Visible || p.AuthorId == uid ).OrderByDescending(p => p.UserCreated) + ).Where(p => p.Visible || p.AuthorId == uid ).OrderByDescending(p => p.DateCreated) .Skip(skip).Take(maxLen)); } diff --git a/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs b/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs index b9baef5b..3edf4a60 100644 --- a/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs +++ b/Yavsc/Migrations/20170117134339_entityTracking.Designer.cs @@ -1,7 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Migrations; using Yavsc.Models; diff --git a/Yavsc/Migrations/20170117134339_entityTracking.cs b/Yavsc/Migrations/20170117134339_entityTracking.cs index a332fa3b..a62323d9 100644 --- a/Yavsc/Migrations/20170117134339_entityTracking.cs +++ b/Yavsc/Migrations/20170117134339_entityTracking.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using Microsoft.Data.Entity.Migrations; namespace Yavsc.Migrations diff --git a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs index d37b7a5c..2e02ba6d 100644 --- a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,8 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; using Yavsc.Models; namespace Yavsc.Migrations