示例#1
0
        public async Task <ActionResult <Pool> > GetPool(int id)
        {
            var pool = await _poolRepository.GetPoolById(id);

            if (pool == null)
            {
                return(NotFound($"Pool with Id {id} was not found"));
            }

            return(Ok(pool));
        }