public async Task <ActionResult <GenericViewResource> > GetAction([FromServices] IGet get, int id) { log.LogInformation($"Querrying the database for generic resource with id:{id}"); return(await TryTask <GenericViewResource> .Run(async() => Ok(await get.Generic(id)))); }