traque les éditions de billet

vnext
Paul Schneider 8 years ago
parent 66bdc723f1
commit 040db1648f
4 changed files with 1 additions and 5 deletions

@ -47,7 +47,7 @@ namespace Yavsc.Controllers
return UserPosts(id); return UserPosts(id);
return View(_context.Blogspot.Include( return View(_context.Blogspot.Include(
b => b.Author 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)); .Skip(skip).Take(maxLen));
} }

@ -1,7 +1,6 @@
using System; using System;
using Microsoft.Data.Entity; using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure; using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations; using Microsoft.Data.Entity.Migrations;
using Yavsc.Models; using Yavsc.Models;

@ -1,5 +1,4 @@
using System; using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations; using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations namespace Yavsc.Migrations

@ -1,8 +1,6 @@
using System; using System;
using Microsoft.Data.Entity; using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure; using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models; using Yavsc.Models;
namespace Yavsc.Migrations namespace Yavsc.Migrations

Loading…