sync witch API
This commit is contained in:
parent
d2ac26cf13
commit
e3977b3aab
2 changed files with 48 additions and 21 deletions
|
|
@ -1,26 +1,53 @@
|
||||||
using System;
|
using System;
|
||||||
|
using Yavsc.Models;
|
||||||
|
|
||||||
namespace BookAStar.Model.Blog
|
namespace BookAStar.Model.Blog
|
||||||
{
|
{
|
||||||
public partial class Blog
|
public partial class Blog : IBlog
|
||||||
{
|
{
|
||||||
|
public string AuthorId
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public long Id { get; set; }
|
public string Content
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public string bcontent { get; set; }
|
public long Id
|
||||||
|
{
|
||||||
public DateTime modified { get; set; }
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public string photo { get; set; }
|
public DateTime Modified
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public DateTime posted { get; set; }
|
public string Photo
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public int rate { get; set; }
|
public DateTime Posted
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public string title { get; set; }
|
public int Rate
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public string AuthorId { get; set; }
|
public string Title
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
public bool visible { get; set; }
|
public bool Visible
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@ namespace BookAStar.Pages.BlogPages
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_sourceTitle.Html = _md.Transform(blog.bcontent);
|
_sourceTitle.Html = _md.Transform(blog.Title);
|
||||||
_source.Html = _md.Transform(blog.bcontent);
|
_source.Html = _md.Transform(blog.Content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue