Example #1
0
        public IActionResult Get(int id)
        {
            var item = _repo.Find(id);

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

            return(Json(item));
        }