public UserController(IUserView userView, IList <UserViewModel> users) { _userView = userView ?? throw new ArgumentNullException(nameof(userView)); _users = users ?? throw new ArgumentNullException(nameof(users)); _userView.SetController(this); }
public UserController(IUserView view, IList users) { _view = view; _users = users; view.SetController(this); }