public async Task <ActionResult> Index(string tabId, int parentId) { var result = SiteService.InitList(parentId); var model = SiteListViewModel.Create(result, tabId, parentId); return(await JsonHtml("Index", model)); }
public async Task <ActionResult> MultipleSelect(string tabId, int parentId, [FromBody] SelectedItemsViewModel selModel) { var result = SiteService.MultipleInitList(parentId); var model = SiteListViewModel.Create(result, tabId, parentId, true, selModel.Ids); return(await JsonHtml("Index", model)); }
public ActionResult MultipleSelect(string tabId, int parentId, int[] IDs) { var result = SiteService.MultipleInitList(parentId); var model = SiteListViewModel.Create(result, tabId, parentId, true, IDs); return(JsonHtml("Index", model)); }