Exemple #1
0
        public ICollection <UserBO> Register([FromBody] UserBO user)
        {
            user.Password = SecurePasswordHasher.Encrypt(user.Password, PasswordDecrypter);
            ICollection <UserBO> userList = new List <UserBO>();

            userList.Add(user);
            return(_authentication.Create(userList));
        }