public PageSelectableListViewModel(PageInitListResult result, string tabId, int parentId, int[] ids) { ParentEntityId = parentId; TabId = tabId; ParentName = result.ParentName; SelectedIDs = ids; AutoGenerateLink = false; ShowAddNewItemButton = !IsWindow; }
public static PageListViewModel Create(PageInitListResult result, string tabId, int parentId) { var model = Create<PageListViewModel>(tabId, parentId); model.ShowAddNewItemButton = result.IsAddNewAccessable && !model.IsWindow; return model; }