예제 #1
0
        // GET api/<controller>/5
        public IHttpActionResult Get(int id)
        {
            var result = repo.FindbyId(id);

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