Exemple #1
0
        public static User createUserFromInvite(string email, bool signature)
        {
            User user = new User();

            UserEmail userEmail = new UserEmail { email = email, user = user, inUse = true };

            repo.Create(user);
            new UserEmailRepository().Create(userEmail);

            //Create notification
            NotificationManager.create(user, "Velkommen til BizDoc, kom i gang med at redigere dine brugeroplysninger.", "/Bruger/Indstillinger#/Bruger/Stamoplysninger");

            return user;
        }
Exemple #2
0
        public static User createUser(string email, string password)
        {
            User user = new User();
            user.setPassword(password);
            user.signedUp = true;

            UserEmail userEmail = new UserEmail { email = email, user = user, inUse = true };

            repo.Create(user);
            new UserEmailRepository().Create(userEmail);

            //Create notification
            NotificationManager.create(user, "Velkommen til BizDoc, kom i gang med at redigere dine brugeroplysninger.", "/Bruger/Indstillinger#/Bruger/Stamoplysninger");

            return user;
        }