예제 #1
0
        public async Task <IHttpActionResult> GetAsync(int id)
        {
            var result = await exampleService.GetAsync(id).ConfigureAwait(false);

            if (result != null)
            {
                return(Ok(result));
            }
            return(NotFound());
        }