Exemplo n.º 1
0
        public ActionResult Index()
        {
            PhotoRepository repo = new PhotoRepository();
            string          user = User.Identity.GetUserName();

            NewsFeedViewModel model = new NewsFeedViewModel();

            model.photo = repo.GetFollowersPhotos(user);
            return(View(model));
        }