public async Task <ActionResult <ShelterViewResource> > PostAsync([FromServices] IPost post, [FromBody] ShelterViewResource shelt) { log.LogInformation($"Adding {shelt.Name} to database"); return(await TryTask <ShelterViewResource> .Run(async() => { await post.AddShelterResource(shelt); return Ok(shelt); })); }