コード例 #1
0
 public async Task <ActionResult <ConsumableViewResource> > GetAction([FromServices] IGet get, int id)
 {
     log.LogInformation($"Querying db for consumable res with id:{id}");
     return(await TryTask <ConsumableViewResource> .Run(async() => Ok(await get.Consumable(id))));
 }