示例#1
0
        public JsonResult LoadResourceList()
        {
            var ResourceList = MediaSrcController.GetMediaSrcListByBrandIdAndStatus();

            return(Json(new
            {
                ResourceList = ResourceList,
            }, JsonRequestBehavior.AllowGet));
        }
 // GET: Playlist/Form/:id
 public ActionResult Form(int?id, string imageId)
 {
     Models.PlaylistDetailVM model = null;
     if (id != null)
     {
         var playlist = this.playlistService.Get(id);
         if (playlist != null)
         {
             model = new Models.PlaylistDetailVM
             {
                 Title       = playlist.Title,
                 Description = playlist.Description,
                 Id          = playlist.PlaylistID,
                 isPublic    = (bool)playlist.isPublic,
             };
         }
     }
     ViewBag.visualTypeList = GetVisualTypes();
     ViewBag.mediaSrcList   = MediaSrcController.GetMediaSrcListByBrandIdAndStatus();
     ViewBag.itemList       = GetMediaSrcListByPlaylistId(id ?? default(int));
     return(View("Form", model));
 }