mirrored_repositories/fic-mini-project/lib/domain/usecases
import 'package:fic_mini_project/domain/entity/cart.dart';
import 'package:fic_mini_project/domain/entity/product.dart';
import 'package:fic_mini_project/domain/repositories/cart_repository.dart';

class AddProductToCart {
  final CartRepository repository;

  AddProductToCart(this.repository);

  Future<Cart> execute(Product product) {
    return repository.addProductToCart(product);
  }
}
