Ejemplo n.º 1
0
        public ActionResult GetListVideoForChoose(int pagesize = 100)
        {
            IRepositryVideos <Fly_Videos> repository = new VideosDAO();
            var listVideo = repository.getAllItems().ToList().Select(x => new { Title = x.VideosTitle, VideoLink = x.VideosLink, ImageLink = x.Fly_Picture.OriginalURL });

            return(Json(new { result = listVideo.Take(pagesize) }));
        }