public IActionResult Get(int id) { var single = _repo.Single(id); return(single != null?Ok(single) : BadRequest() as IActionResult); }