コード例 #1
0
ファイル: ContentController.cs プロジェクト: AuthorProxy/QP
        public ActionResult MultipleSelectForCustomAction(string tabId, int parentId, int[] IDs)
        {
            var result = ContentService.InitList(parentId);
            var model  = new CustomActionContentViewModel(result, tabId, parentId, IDs)
            {
                IsMultiple = true
            };

            return(JsonHtml("MultiSelectIndex", model));
        }
コード例 #2
0
        public async Task <ActionResult> MultipleSelectForCustomAction(string tabId, int parentId, [FromBody] SelectedItemsViewModel selModel)
        {
            var result = ContentService.InitList(parentId);
            var model  = new CustomActionContentViewModel(result, tabId, parentId, selModel.Ids)
            {
                IsMultiple = true
            };

            return(await JsonHtml("MultiSelectIndex", model));
        }