public bool Remove(Product product)
        {
            bool result = _repository.Remove(product);
            _logger.Info(string.Format("{0} product {1}|{2}", result ? "Removed" : "Could not remove", product.Id, product.Name));

            return result;
        }
        public bool Remove(Product product)
        {
            if (_environment.User.Level != SecurityLevel.Admin)
            {
                throw new NotAuthorizedException(SecurityLevel.Admin);
            }

            return _repository.Remove(product);
        }
        public void Add(Product product)
        {
            if (_environment.User.Level != SecurityLevel.Admin)
            {
                throw new NotAuthorizedException(SecurityLevel.Admin);
            }

            _repository.Add(product);
        }
 public void Add(Product product)
 {
     _repository.Add(product);
     _logger.Info(string.Format("Added product {0}|{1}", product.Id, product.Name));
 }
 public bool Remove(Product product)
 {
     return _products.Remove(product);
 }
 public void Add(Product product)
 {
     _products.Add(product);
 }