public ActionResult Index(IPrincipal user) { var currentUserId = user.Identity.GetUserId(); var items = _repository.FindItemsByUserId(currentUserId); var itemIndexViewModels = ItemIndexViewModel.MapItemsForIndexView(items); var saleLink = Helper.GetSaleBaseLink(); saleLink = saleLink + "/buy/index/" + currentUserId; ViewBag.SaleLink = saleLink; ViewBag.RichClientLink = Helper.GetSaleBaseLink() + "/richclient/items/" + currentUserId; return(View(itemIndexViewModels)); }