예제 #1
0
 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;
 }