Exemple #1
0
 public ActionResult Index(int page = 1)
 {
     ViewBag.Voted = repository.UserVoted(User.Identity.Name);
     ViewBag.BlogRate = String.Format("{0:0.00}",repository.GetBlogRate());
     PublicationPreviewViewModel result = new PublicationPreviewViewModel(repository.Articles, page);
     return View(result);
 }
Exemple #2
0
 public ActionResult Index(int page = 1)
 {
     PublicationPreviewViewModel result = new PublicationPreviewViewModel(repository.Articles, page);
     return View(result);
 }
Exemple #3
0
 public ActionResult SearchByTag(string id)
 {
     ViewBag.curTag = id;
     PublicationPreviewViewModel result = new PublicationPreviewViewModel(repository.Articles, repository, id);
     return View(result);
 }