Пример #1
0
 public Boolean addUser(UserContainer NewUser, String Password)
 {
     return(NewUser.AddThisUser(Password));
 }
Пример #2
0
        /// <summary>
        ///     Adds a new User to the System
        /// </summary>
        /// <param name="name">User's loginname</param>
        /// <param name="password">User's password</param>
        /// <param name="email">User's email address</param>
        /// <param name="IsKoordinator">True, if user is of Role "Koordinator"</param>
        /// <param name="IsFreigabeberechtigter">True, if user is of Role "Freigabeberechtigter"</param>
        /// <param name="IsModulverantwortlicher">True, if user is of Role "Modulverantwortlicher"</param>
        /// </param>
        /// <returns>
        ///     Returns true if adding was successfull; False otherwise.
        /// </returns>
        public Boolean addUser(String name, String password, String email, Boolean IsKoordinator, Boolean IsFreigabeberechtigter, Boolean IsModulverantwortlicher)
        {
            UserContainer NewUser = new UserContainer(name, email, IsModulverantwortlicher, IsKoordinator, IsFreigabeberechtigter);

            return(NewUser.AddThisUser(password));
        }