public CarsController(IShopDbRepository repoInstance) { if (repoInstance == null) { throw new Exception("Repository is null!"); } repository = repoInstance; }
public CartController(IShopDbRepository repoInstance) { repository = repoInstance; }