This could all be replace with:

```C#
return Context.Request.QueryString["groupsToken"]
    ?? (await Context.Request.ReadForm())["groupsToken"];
```