public UserController(IUsersView view, IList users) { _view = view; _users = users; view.SetController(this); }
public UsersController(IUsersView userView) { _userView = userView; _userView.UserInfo = new User("", 0, "", User.SexOfPerson.Male, User.UserStatus.Active); userView.SetController(this); _service = new UPSAssignment.Service.Service(); _service.SetConfiguration(ConfigurationManager.AppSettings["ServiceApiURL"].ToString(), ConfigurationManager.AppSettings["ApiToken"].ToString()); }
/// <summary> /// Initializes a new instance of the <see cref="UsersController"/> class by using the specified view context and data source. /// </summary> /// <param name="view">The view context.</param> /// <param name="mails">The data source.</param> public UsersController(IUsersView view, IEnumerable <User> users) { this.view = view; this.users = users; view.SetController(this); }