public async Task <ActionResult <ConsumableViewResource> > PostAction([FromServices] IPost post, [FromBody] ConsumableViewResource consume) { HeaderDecode.DecodeHeader(Request); log.LogInformation($"Adding {consume.Name} to consumable resources"); return(await TryTask <ConsumableViewResource> .Run(async() => { await post.AddConsumable(consume); return consume; })); }