Ejemplo n.º 1
0
 public ActionResult Bookmarks( int userid )
 {
     User user = userService.GetUser(userid);
     if (user == null) {
         return null;
     }
     UserHomeModel model = new UserHomeModel();
     model.CurrentUser = user;
     return View(model);
 }
Ejemplo n.º 2
0
 public ActionResult Blogs( int userid, int? page )
 {
     User user = userService.GetUser(userid);
     if (user == null) {
         return null;
     }
     UserHomeModel model = new UserHomeModel();
     model.CurrentUser = user;
     int _page = page ?? 1;
     model.Articles = articleService.GetArticlesOfUser(userid, 20, _page);
     return View(model);
 }