re-refacto BlogPost serialization
This commit is contained in:
parent
64547840e4
commit
cd03b04755
2 changed files with 2 additions and 4 deletions
|
|
@ -3,7 +3,5 @@ namespace Yavsc.Interfaces
|
||||||
public interface ITaggable<K> : IIdentified<K>
|
public interface ITaggable<K> : IIdentified<K>
|
||||||
{
|
{
|
||||||
string [] GetTags();
|
string [] GetTags();
|
||||||
|
|
||||||
K Id { get; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,9 @@ namespace Yavsc.Blogs.Controllers
|
||||||
|
|
||||||
// GET: api/BlogApi
|
// GET: api/BlogApi
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public async Task<IEnumerable<BlogPost>> GetBlogspot(int start = 0, int take = 25)
|
public async Task<IEnumerable<IBlogPost>> GetBlogspot(int start = 0, int take = 25)
|
||||||
{
|
{
|
||||||
return (await blogSpotService.Index(User, null, start, take)).Cast<BlogPost>();
|
return await blogSpotService.Index(User, null, start, take);
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: api/BlogApi/5
|
// GET: api/BlogApi/5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue