public bool Add(ShoppingCart shoppingCart) { if (_customerBusiness.Select(shoppingCart.CustomerId) == null) { throw new ArgumentException($"Cliente não encontrado : {shoppingCart.CustomerId}"); } return(_shoppingCartRepository.Insert(shoppingCart)); }
public List <Customer> Select() { return(_customerBusiness.Select()); }