@ -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));
}
@ -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;
@ -1,5 +1,4 @@
using System.Collections.Generic;
namespace Yavsc.Migrations
@ -1,8 +1,6 @@