예제 #1
0
 public AccountController(IPopulateModel <Login, LoginViewModel> populateModelLogin,
                          IGenericRepository <User> userRepository,
                          IGenericRepository <Phone> phoneRepository)
 {
     this.populateModelLogin = populateModelLogin;
     this.userRepository     = userRepository;
     this.userService        = new UserService(this.userRepository, this.phoneRepository);
 }
예제 #2
0
 public ContactUsController(IGenericRepository <ContactUs> contactUsRepository,
                            IPopulateModel <ContactUs, ContactUsViewModel> contactUsService)
 {
     this.contactUsRepository = contactUsRepository;
     this.contactUsService    = contactUsService;
 }