Beispiel #1
0
        public HomeController(IPostRepository postRepository)
        {
            _posts = postRepository;

            _userRepository = new UserRepository();
            _roleRepository = new RoleRepository();
            _users = new UserService(ModelState, _userRepository, _roleRepository);
        }
 public UserController()
 {
     _userRepository = new UserRepository();
     _roleRepository = new RoleRepository();
     _users = new UserService(ModelState, _userRepository, _roleRepository);
 }