//SHOW ITEM public ActionResult ShowItem(int CollectionId) { MediaCollection MediaCollection = new MediaCollection(); MediaCollection = repository.GetMediaCollectionDescription(CollectionId); ViewBag.collectionTitle = MediaCollection.ShortTitle.ToString(); return(View(repository.TransformToVideoMediaCollection(CollectionId))); }
//SHOW ITEM public ActionResult ShowItem(int CollectionId) { MediaCollection MediaCollection = new MediaCollection(); MediaCollection = repository.GetMediaCollectionDescription(CollectionId); ViewBag.collectionTitle = MediaCollection.ShortTitle.ToString(); ViewBag.collectionFolder = MediaCollection.Location.ToString(); return(View(MediaCollection.MediaElements.ToList())); }
public ActionResult ShowCollection(int CollectionId) { MediaCollection MediaCollection = new MediaCollection(); MediaCollection = repository.GetMediaCollectionDescription(CollectionId); ViewBag.User = this.User.Identity.Name.ToString(); ViewBag.CollectionTitle = MediaCollection.Title.ToString(); ViewBag.Description = MediaCollection.Description.ToString(); ViewBag.CollectionFolder = MediaCollection.Location.ToString(); return(View(MediaCollection)); }