Example #1
0
        public ActionResult ImageInsert(string folderId)
        {
            var request = new MediaManagerViewModel { CurrentFolderId = folderId.ToGuidOrDefault() };
            var images = GetCommand<GetImagesCommand>().ExecuteCommand(request);
            var success = images != null;
            var view = RenderView("ImageInsert", new MediaImageViewModel());

            return ComboWireJson(success, view, images, JsonRequestBehavior.AllowGet);
        }
Example #2
0
        /// <summary>
        /// Gets the videos list.
        /// </summary>
        /// <returns>List of videos</returns>
        public ActionResult GetVideosList(MediaManagerViewModel options)
        {
            var success = true;
            if (options == null)
            {
                options = new MediaManagerViewModel();
            }

            var model = GetCommand<GetVideosCommand>().ExecuteCommand(options);
            if (model == null)
            {
                success = false;
            }
            return Json(new WireJson { Success = success, Data = model });
        }
Example #3
0
        public ActionResult GetFilesList(MediaManagerViewModel options)
        {
            var success = true;
            if (options == null)
            {
                options = new MediaManagerViewModel();
            }
            options.SetDefaultPaging();

            var model = GetCommand<GetFilesCommand>().ExecuteCommand(options);
            if (model == null)
            {
                success = false;
            }

            return WireJson(success, model);
        }