public ActionResult GetArticle(int Id) { ViewBag.Title = "Статья"; return(View("Index", ArticleViewModelManager.GetArticlesViewModels( this.unitOfWork.ArticleRepository.GetByID(Id)))); }
public ActionResult Index() { ViewBag.Title = Thread.CurrentPrincipal.Identity.Name; ; return(View(ArticleViewModelManager.GetArticlesViewModels(this.unitOfWork.ArticleRepository.Get()))); }