コード例 #1
0
        public bool Add(ShoppingCart shoppingCart)
        {
            if (_customerBusiness.Select(shoppingCart.CustomerId) == null)
            {
                throw new ArgumentException($"Cliente não encontrado : {shoppingCart.CustomerId}");
            }

            return(_shoppingCartRepository.Insert(shoppingCart));
        }
コード例 #2
0
 public List <Customer> Select()
 {
     return(_customerBusiness.Select());
 }