public LoginAccount UpdateUser(LoginAccount user, Roles[] roles) { var roles_parsed = string.Join(",", roles.Select(VeracodeEnumConverter.Convert).ToArray()); var xml = _wrapper.UpdateUser(user.username, user.first_name, user.last_name, user.email_address, roles_parsed, user.teams); return(XmlParseHelper.Parse <userinfo>(xml).login_account); }