public override EntityList GetByParentId(object pId, PagingInfo paging = null, EagerLoadOptions eagerLoad = null)
        {
            int parentId = (int)pId;

            var list = new ViewConfigurationCommandList();

            var evm = ViewConfigurationModel.GetEVMByParentId(parentId);

            if (RafyEnvironment.Location.IsWebUI)
            {
                list.Add(parentId, evm.AsWebView().Commands);
            }
            else
            {
                list.Add(parentId, evm.AsWPFView().Commands);
            }

            return(list);
        }
        public override EntityList GetByParentId(object pId, PagingInfo paging = null, EagerLoadOptions eagerLoad = null)
        {
            int parentId = (int)pId;

            var list = new ViewConfigurationCommandList();

            var evm = ViewConfigurationModel.GetEVMByParentId(parentId);

            if (RafyEnvironment.Location.IsWebUI)
            {
                list.Add(parentId, evm.AsWebView().Commands);
            }
            else
            {
                list.Add(parentId, evm.AsWPFView().Commands);
            }

            return list;
        }