// GET api/values/5 public string Get(int id) { var dataAccess = new DataAcces(); var product = dataAccess.GetProductById(1); return(product.Name); }