title: I can't pass a parameter to the "product" and so I can't give my get(id)"
body: <p>I need to pass the parameter of my item to be able to give the &quot;get(id)&quot;. But I'm not getting it, this parameter has to come from the index page when I click on the details on the item. If I put a number to give the get, it goes and returns the json of the item, but I can't print it on the screen either.</p>
  <p><strong>EDIT2:</strong>
  I already managed to solve the parameter, I updated my code but I can't return my product to the page, it's giving the same error in the edit.</p>
  <pre><code>public async Task&lt;Product&gt; GetOne(ProductInsert product)
  {  
          ProductInsert produto = new ProductInsert()
          {
              sku = product.sku
          };
  
          var client = new HttpClient
          {
              BaseAddress = new Uri(&quot;https://test.testla.com.br&quot;)
          };
  
          string jsonObjeto = JsonSerializer.Serialize(produto.sku);
          client.DefaultRequestHeaders.Add(&quot;x-user-email&quot;, &quot;victor@test.com.br&quot;);
          client.DefaultRequestHeaders.Add(&quot;x-api-key&quot;, &quot;eyJ0eXAiOiJKV1Qi&quot;);
          client.DefaultRequestHeaders.Add(&quot;x-store-key&quot;, &quot;1&quot;);
          client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue(&quot;application/json&quot;));
  
          HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Get, &quot;/app/Api/V1/Products/&quot; + produto.sku);
  
          // string jsonObjeto = JsonSerializer.Serialize(produtoCriado);
          req.Content = new StringContent(&quot;Content-type&quot;, Encoding.UTF8, &quot;application/json&quot;);
          using var res = await client.SendAsync(req);
          //res.EnsureSuccessStatusCode();
          var responseBody = await res.Content.ReadAsStringAsync();
          var root = JsonSerializer.Deserialize&lt;Rootobject&gt;(responseBody);
          var output = new List&lt;Product&gt;();
          root?.result.data.ToList().ForEach(x =&gt; output.Add(x.product));
  
          return null;
  }
  </code></pre>
  <p>My controller:</p>
  <pre><code>using Microsoft.AspNetCore.Http;
  using Microsoft.AspNetCore.Mvc;
  using System.Data.Entity;
  using WebConsumoApi.Interfaces;
  using WebConsumoApi.Models;
  
  namespace WebConsumoApi.Controllers
  {
      public class ProdutosController : Controller
      {
          private readonly IProduto _IProduto;
  
          public ProdutosController(IProduto IProduto)
          {
              _IProduto = IProduto;
          }
  
          // GET: ProdutosController
          public async Task&lt;ActionResult&gt; Index()
          {
              var products = await _IProduto.ListAsync(); 
              return View(products);
          }
  
          // GET: ProdutosController/Details/5
          public async Task&lt;ActionResult&gt; Details(ProductInsert product)
          {
              var products = await _IProduto.GetOne(product);
  
              return View(products);
          }
  
          // GET: ProdutosController/Create
          public ActionResult Create()
          {
              return View();
          }
  
          // POST: ProdutosController/Create
          [HttpPost]
          [ValidateAntiForgeryToken]
          public ActionResult Create(ProductInsert collection)
          {
              try
              {
                  _IProduto.Create(collection);
                  return RedirectToAction(nameof(Index));
              }
              catch
              {
                  return View();
              }
          }
  
          // GET: ProdutosController/Edit/5
          public ActionResult Edit(ProductInsert product)
          {
              return View(_IProduto.GetOne(product));
          }
  
          // POST: ProdutosController/Edit/5
          [HttpPost]
          [ValidateAntiForgeryToken]
          public ActionResult Edit(int id, Product collection)
          {
              try
              {
                  _IProduto.Update(collection);
                  return RedirectToAction(nameof(Index));
              }
              catch
              {
                  return View();
              }
          }
  
          // GET: ProdutosController/Delete/5
          public ActionResult Delete(ProductInsert product)
          {
              return View(_IProduto.GetOne(product));
          }
  
          // POST: ProdutosController/Delete/5
          [HttpPost]
          [ValidateAntiForgeryToken]
          public ActionResult Delete(string id, Product collection)
          {
              try
              {
                  _IProduto.Delete(id);
                  return RedirectToAction(nameof(Index));
              }
              catch
              {
                  return View();
              }
          }
      }
  }
  </code></pre>
  <p>My details view (<code>Get(Id)</code>):</p>
  <pre><code>@model WebConsumoApi.Models.Product
  
  @{
      ViewData[&quot;Title&quot;] = &quot;Details&quot;;
  }
  
  &lt;h1&gt;Details&lt;/h1&gt;
  
  &lt;div&gt;
      &lt;h4&gt;Product&lt;/h4&gt;
      &lt;hr /&gt;
      &lt;dl class=&quot;row&quot;&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.sku)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.sku)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.name)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.name)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.description)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.description)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.status)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.status)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.qty)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.qty)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.price)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.price)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.list_price)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.list_price)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.weight_gross)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.weight_gross)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.weight_liquid)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.weight_liquid)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.height)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.height)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.width)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.width)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.length)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.length)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.items_per_package)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.items_per_package)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.brand)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.brand)
          &lt;/dd&gt;
          &lt;dt class = &quot;col-sm-2&quot;&gt;
              @Html.DisplayNameFor(model =&gt; model.ean)
          &lt;/dt&gt;
          &lt;dd class = &quot;col-sm-10&quot;&gt;
              @Html.DisplayFor(model =&gt; model.ean)
          &lt;/dd&gt;
      &lt;/dl&gt;
  &lt;/div&gt;
  &lt;div&gt;
      @Html.ActionLink(&quot;Edit&quot;, &quot;Edit&quot;, new { id = Model.sku }) |
      &lt;a asp-action=&quot;Index&quot;&gt;Back to List&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  <p><strong>EDIT 1:</strong></p>
  <p><a href="https://i.stack.imgur.com/Ev69n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ev69n.png" alt="ERROR" /></a></p>
  <p><strong>EDIT 3:</strong></p>
  <p>MY JSON:</p>
  <pre><code>{&quot;success&quot;:true,&quot;result&quot;:{&quot;product&quot;:{&quot;sku&quot;:&quot;GG005&quot;,&quot;name&quot;:&quot;Gabinete Gamer&quot;,&quot;description&quot;:&quot;Gabinete Gamer com RGB&quot;,&quot;status&quot;:&quot;enabled&quot;,&quot;qty&quot;:15,&quot;price&quot;:399.9,&quot;list_price&quot;:399.9,&quot;weight_gross&quot;:0.3,&quot;weight_liquid&quot;:0.25,&quot;height&quot;:9,&quot;width&quot;:3,&quot;length&quot;:5,&quot;items_per_package&quot;:&quot;1&quot;,&quot;brand&quot;:&quot;Mr. Cat&quot;,&quot;ean&quot;:null,&quot;ncm&quot;:null,&quot;categories&quot;:[{&quot;code&quot;:null,&quot;name&quot;:null}],&quot;images&quot;:[&quot;https:\/\/manairadigitalteste.conectala.com.br\/app\/assets\/images\/product_image\/DCA2235E-B4B5-23C9-7BEF-0A3581DD2433\/16587766584120.jpg&quot;],&quot;variation_attributes&quot;:[&quot;UN&quot;]}}}
  </code></pre>