public ActionResult <Product> Get(int id) { var item = _service.GetById(id); if (item == null) { return(NotFound()); } return(Ok(item)); }