public void CreatePost(CreatePostCommand command)
 {
     _uow.Save( Post.CreatePost(new AggregateRootFactory(),
         command.Title,
         command.Content,
         command.Excerpt,
         command.BlogName));
     _uow.Commit(command.Id);
 }
 /// <summary>
 /// 	Add a new post.
 /// </summary>
 /// <param name = "blogid">The blogid.</param>
 /// <param name = "username">The username.</param>
 /// <param name = "password">The password.</param>
 /// <param name = "post">The post.</param>
 /// <param name = "publish">if set to <c>true</c> [publish].</param>
 /// <returns></returns>
 /// <exception cref = "XmlRpcFaultException"> If <paramref name = "username" /> or <paramref name = "password" /> are invalid.</exception>
 public string AddPost(string blogid, string username, string password, Post post, bool publish)
 {
     _logger.Debug("Received call to Add Post ");
     CreatePostCommand command = new CreatePostCommand()
     {
         BlogName = blogid,
         Content = post.description,
         Title = post.title,
         Excerpt = post.mt_excerpt,
     };
     _commandDispatcher.ExecuteCommand(command);
     return command.Id.ToString("N");
 }