Пример #1
0
        public ActionResult SelectForObjectForm(string tabId, int parentId, int id)
        {
            var result = ContentService.InitListForObject();
            var model  = new ObjectContentViewModel(result, tabId, parentId, new[] { id }, ContentSelectMode.ForForm);

            return(JsonHtml("SelectIndex", model));
        }
Пример #2
0
        public async Task <ActionResult> SelectForObjectContainer(string tabId, int parentId, int id)
        {
            var result = ContentService.InitListForObject();
            var model  = new ObjectContentViewModel(result, tabId, parentId, new[] { id }, ContentSelectMode.ForContainer);

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