Beispiel #1
0
        /// <summary>
        /// Registers a new user and creates a new board for him.
        /// </summary>
        /// <param name="email">The email address of the user to register</param>
        /// <param name="password">The password of the user to register</param>
        /// <param name="nickname">The nickname of the user to register</param>
        /// <returns>A response object. The response should contain a error message in case of an error<returns>
        public Response Register(string email, string password, string nickname)
        {
            Response rtn = uService.Register(email, password, nickname);

            if (rtn.ErrorOccured)
            {
                log.Info("user did not registered successfully");
                return(new Response(rtn.ErrorMessage));
            }
            else
            {
                return(bService.Register(email));
            }
        }