title: How to populate a @html.dropdownlist mvc helper using JSon
body: <p>I have a <code>&lt;select&gt;</code> which is loaded by a JSon. But I want to use "@html.dropdownlist helper" instead. My Json is:</p>
  
  <pre><code>function LoadSites() {
  $("SelectSite").html("");
  $.getJSON("/Pedido/GetSite", null, function (data) {
      $("#SelectSite").append("&lt;option value=0&gt;Selecione...&lt;/option&gt;");
      $.each(data.Result, function (index, site) {
          $("#SelectSite").append("&lt;option value='" + site.Id + "'&gt;" + site.Nome + "&lt;/option&gt;");
      });
  });
  </code></pre>
  
  <p>this Json populate this... </p>
  
  <pre><code>&lt;select id="SelectSite"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>My Controller:</p>
  
  <pre><code>        [HttpGet]
      public JsonResult GetSite()
      {
          Repository&lt;Site&gt; siteRepo = new Repository&lt;Site&gt;( unitOfWork.Session );
          return this.Json( new { Result = siteRepo.All() }, JsonRequestBehavior.AllowGet );
      }
  </code></pre>
  
  <p>I want my code more reusable and self-documenting.
  How can I send the object "site" from JSon to "cshtml" using dropdownlist to do something like <code>@html.dropdownlist(site.id, site.Nome)</code>???</p>
  
  <p>Is there a way?</p>
  
  <p>Tks guys.</p>