示例#1
0
        public IList <Distributor> GetActivesByPriceList()
        {
            ExecutePermissionValidator epv = new ExecutePermissionValidator();

            epv.ClassType     = typeof(PriceList);
            epv.KeyIdentifier = Config.SeePriceLists;

            IList priceListIds = null;

            if (PermissionManager.Check(epv) == false)
            {
                priceListIds = PermissionManager.GetPermissionIdentifiers(typeof(PriceList), PermissionAction.Create);
            }

            return(repository.GetActivesByPriceList(priceListIds));
        }