Exemple #1
0
        public ActionResult IndexPageObjects(string tabId, int parentId)
        {
            var result = _objectService.InitObjectList(parentId, false);
            var model  = ObjectListViewModel.Create(result, tabId, parentId, false);

            return(JsonHtml("Index", model));
        }
Exemple #2
0
        public async Task <ActionResult> IndexTemplateObjects(string tabId, int parentId)
        {
            var result = _objectService.InitObjectList(parentId, true);
            var model  = ObjectListViewModel.Create(result, tabId, parentId, true);

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