예제 #1
0
        public IActionResult Get(int id)
        {
            var single = _repo.Single(id);

            return(single != null?Ok(single) : BadRequest() as IActionResult);
        }