Exemple #1
0
        private readonly IRepoCustomer _repoCustomer;   // Use customer repository interface as _repoCustomer

        public CustomerController(DataContext context, IRepoCustomer repoCustomer)
        {
            _context      = context;
            _repoCustomer = repoCustomer;   // call IRepoCustomer as _repoCustomer
        }
Exemple #2
0
 public CustomerController(IRepoCustomer <Fault, Guid> repoCustomer)
 {
     _repoCustomer = repoCustomer;
 }