public Article ArticleViewModel2Article(ArticleViewModel articleViewModel)
 {
     var article = new Article();
     article.Id = articleViewModel.Id;
     article.Text = articleViewModel.Text;
     article.Title = articleViewModel.Title;
     article.UserId = articleViewModel.User.UserId;
     return article;
 }
 public virtual ActionResult Edit(int id,ArticleViewModel article)
 {
     try
     {
         GetCommand<EditArticleCommand>().ExecuteCommand(article);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
 public ArticleViewModel Article2ArticleViewModel(Article article)
 {
     var result = new ArticleViewModel
     {
         Id = article.Id,
         Title = article.Title,
         Text = article.Text,
         User=GetUserById(article.UserId),
         //Comments=article.Comments.Select(Comment2CommentViewModel).ToList(),
     };
     return result;
 }