Example #1
0
 public ContactRepository(PhoneBookDbContext dbContext) => this.dbContext = dbContext;
Example #2
0
 public UnitOfWork(PhoneBookDbContext phoneBookDbContext)
 {
     dbContext         = phoneBookDbContext;
     ContactRepository = new ContactRepository(dbContext);
 }