Esempio n. 1
0
        }//Follow PartialView

        public PartialViewResult _RetweetCreate(Guid id)
        {
            var tweet = ts.GetByID(id);
            var photo = ps.GetActive().Where(x => x.TweetID == id);

            return(PartialView(Tuple.Create <Tweet, IEnumerable <Photo>, Video>(tweet, photo, vs.GetByDefault(x => x.ID == tweet.TweetVideoID))));
        }
Esempio n. 2
0
        public ActionResult List()
        {
            List <Photo> Photos = _PhotoService.GetActive().Take(12).OrderByDescending(x => x.AddDate).ToList();

            return(View(Photos));
        }