Example #1
0
        public async Task <IActionResult> GetRaceResult(int id)
        {
            try
            {
                var raceResult = await service.GetRaceResult(id);

                if (raceResult != null)
                {
                    return(Ok(raceResult));
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (Exception ex)
            {
                logger.LogError(ex);
                throw ex;
            }
        }