예제 #1
0
        public ContactController()
        {
            var context = new AddressBookContext();

            _contactLogic     = new ContactLogic(new ContactRepository(context));
            _contactTypeLogic = new ContactTypeLogic(new ContactTypeRepository(context));
            _userLogic        = new UserLogic(new UserRepository(context));
        }
예제 #2
0
        public ContactController()
        {
            var context = new AddressBookContext();

            _contactLogic = new ContactLogic(new ContactRepository(context));
            _contactTypeLogic = new ContactTypeLogic(new ContactTypeRepository(context));
            _userLogic = new UserLogic(new UserRepository(context));
        }