/// <summary> /// Registers a new user and joins the user to an existing board. /// </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> /// <param name="emailHost">The email address of the host user which owns the board</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, string emailHost) { Response rc = bs.emailExists(emailHost); if (rc.ErrorOccured) { return(rc); } Response rs = us.register(email, password, nickname, emailHost); if (rs.ErrorOccured) { return(rs); } return(bs.assignBoard(email, emailHost)); }