Example #1
0
        public virtual ActionResult GetServiceDocument(string nickname)
        {
            var blog      = _blogService.GetBlog(nickname);
            var viewModel = new AtomViewModel {
                Title = blog.Title, Nickname = nickname
            };

            return(View(viewModel));
        }
Example #2
0
 public virtual ActionResult GetServiceDocument()
 {
     var user = _userService.GetRegisteredUser();
     var viewModel = new AtomViewModel { Title = user.BlogTitle };
     return View(viewModel);
 }