public virtual ActionResult GetServiceDocument(string nickname) { var blog = _blogService.GetBlog(nickname); var viewModel = new AtomViewModel { Title = blog.Title, Nickname = nickname }; return(View(viewModel)); }
public virtual ActionResult GetServiceDocument() { var user = _userService.GetRegisteredUser(); var viewModel = new AtomViewModel { Title = user.BlogTitle }; return View(viewModel); }