コード例 #1
0
        // GET api/values/5
        public async Task <IHttpActionResult> Get(Guid id)
        {
            var thing = await _repository.GetAsync(id);

            if (thing == null)
            {
                return(NotFound());
            }

            return(Ok(thing));
        }