public async Task <TModel> DoAsync(HttpPipeContext context, HttpRequest input) { var json = await context.Request.ReadAsStringAsync(); context.CachePipeOutput(json); return(JsonConvert.DeserializeObject <TModel>(json) ?? new TModel()); }