private readonly IRepoCustomer _repoCustomer; // Use customer repository interface as _repoCustomer public CustomerController(DataContext context, IRepoCustomer repoCustomer) { _context = context; _repoCustomer = repoCustomer; // call IRepoCustomer as _repoCustomer }
public CustomerController(IRepoCustomer <Fault, Guid> repoCustomer) { _repoCustomer = repoCustomer; }