예제 #1
0
        public async Task <IHttpActionResult> GetById(int id)
        {
            return(await TryCatchAsync(async() =>
            {
                var match = await _matchesServices.GetById(id);

                if (match.Id == 0)
                {
                    return NotFound();
                }

                return Ok(match);
            }));
        }