public void Create(int classifyId, string title, string content, int authorId, string authorName, string subcontent) { var newcontent = content.Replace("/upload", "http://localhost:63321/upload"); _blogManager.Create(Blog.Convert(classifyId, newcontent, title, authorId, authorName, (int)BlogStates.Unpublish, subcontent)); }
public BlogController() { _blogRepository = BlogManager.Create(); _commentRepository = CommentManager.Create(); }