internal async virtual Task <ActionResult <TEntity> > Get(int id) { var entity = await service.FindAsync(id); if (entity == null) { return(NotFound()); } return(entity); }