public HomeController() { _repository = new ProductRepository(_context); _context = new NormMVCContext(); }
public HomeController(IProductRepository repository, NormMVCContext context) { this._repository = repository; this._context = context; }