Пример #1
0
        public void Add(User data)
        {
            User account = new User();

            account.Username = data.Username;
            account.Password = BCrypt.Net.BCrypt.HashPassword(data.Password, 10);
            account.Email    = data.Email;
            account.Active   = 1;
            CRUD.Add(account);
            //return "User " + account.Username + " has been added.";
        }
Пример #2
0
        public bool UserCreate(UserDTO userC)
        {
            UserCRUD user = new UserCRUD();

            return(user.Add(userC));
        }