public ContactsRepository(IConfiguration configuration) { _context = new ContactsDbContext <Contact>(configuration); _collection = _context.GetCollection("Contacts"); }