permission handling
This commit is contained in:
parent
3495523bd4
commit
71262647b3
27 changed files with 243 additions and 288 deletions
|
|
@ -25,9 +25,10 @@ namespace Yavsc.Controllers
|
|||
|
||||
// GET: api/BlogApi
|
||||
[HttpGet]
|
||||
public IEnumerable<BlogPost> GetBlogspot()
|
||||
public IEnumerable<BlogPost> GetBlogspot(int start=0, int take=25)
|
||||
{
|
||||
return _context.BlogSpot.Where(b => b.Visible).OrderByDescending(b => b.UserModified);
|
||||
return _context.BlogSpot.OrderByDescending(b => b.UserModified)
|
||||
.Skip(start).Take(take);
|
||||
}
|
||||
|
||||
// GET: api/BlogApi/5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue