public bool Validator(IContextWorker contextWorker) { if (contextWorker.ValidateAdmin()) { return(true); } if (!contextWorker.ValidateCompany()) { return(false); } return(true); }
public ProductService() { _worker = new ContextWorker(); }
public bool Validator(IContextWorker contextWorker) { if (contextWorker.ValidateAdmin()) { return(true); } if (!contextWorker.ValidateCompany()) { return(false); } return(true); }
public ProductService() { _worker = new ContextWorker(); }