Ejemplo n.º 1
0
        public UserDTO CreateUser(UserDTO user)
        {
            db.CreateUser(new UserModel {
                UserName    = user.UserName,
                NewPassword = user.NewPassword,
                Bio         = user.Bio,
                FullName    = user.FullName,
                Initials    = user.Initials,
                Email       = user.Email,
                Boards      = new List <MongoDB.Bson.ObjectId>()
            });

            return(user);
        }