public ContactsController(AddressBookApiContext context, IDataRepository <Contact> contactRepository, IDataRepository <ContactDetail> contactDetailRepository, ILogger <ContactsController> logger) { this.context = context; this.contactRepository = contactRepository; this.contactDetailRepository = contactDetailRepository; this.logger = logger; }
public DataRepository(AddressBookApiContext context) { this.context = context; }