public IActionResult Get(long id) { var item = repository.Get(id); if (item == null) { return(NotFound()); } return(new ObjectResult(item)); }