private mwPost Convert(Post post) { var mwpost = new mwPost { dateCreated = post.Published.Value, description = post.Body, title = post.Title, postid = post.ID.ToString(), link = _urlResolver.PublishedPost(new PostDisplay(post)), permalink = _urlResolver.PublishedPost(new PostDisplay(post)), userid = post.User.ID.ToString() }; List <string> categories = new List <string>(); post.GetTags().Each(tag => categories.Add(tag.Name)); mwpost.categories = categories.ToArray(); return(mwpost); }
public string newPost(object blogid, string username, string password, mwPost mwPost, bool publish) { throw new NotImplementedException(); }
public bool editPost(string postid, string username, string password, mwPost mwPost, bool publish) { ValidateUserCredentials(username, password); throw new NotImplementedException(); }
private mwPost Convert(Post post) { var mwpost = new mwPost { dateCreated = post.Published.Value, description = post.Body, title = post.Title, postid = post.ID.ToString(), link = _urlResolver.PublishedPost(new PostDisplay(post)), permalink = _urlResolver.PublishedPost(new PostDisplay(post)), userid = post.User.ID.ToString() }; List<string> categories = new List<string>(); post.GetTags().Each(tag => categories.Add(tag.Name)); mwpost.categories = categories.ToArray(); return mwpost; }