示例#1
0
        public bool Validator(IContextWorker contextWorker)
        {
            if (contextWorker.ValidateAdmin())
            {
                return(true);
            }

            if (!contextWorker.ValidateCompany())
            {
                return(false);
            }

            return(true);
        }
示例#2
0
 public ProductService()
 {
     _worker = new ContextWorker();
 }