title: error in my code MVC5 Angular js
body: <p>I wanted to get the dropdownlist index to interact the database through jsonresult, but when I change the dropdownlist no action generated , here is the code.</p>
  
  <pre><code>(function () {
              //Create a Module 
              var app = angular.module('MyApp', ['ngRoute']); // Will use ['ng-Route'] 
  
          //implement routing
  
          })();
  </code></pre>
  
  <p>this code for get dropdownlist index</p>
  
  <pre><code>angular.module('MyApp').controller('CommandeControllerClt', function ($scope, LocationService) {
  
  
                 $scope.Id_Partenaire = null; 
                 $scope.PartenaireList = null; 
  
  
  
                 // Function For Populate  partnerers 
                 $scope.GetPartenaire = function () {
  
                     //Load State 
                     LocationService.GetPartenaire($scope.Id_Partenaire).then(function (d) {
                         alert(d.data);  
                     }, function (error) {
                         alert('Error!');
                     });
  
                 }
  
             })
          .factory('LocationService', function ($http) { // explained about factory in Part2
              var fac = {};
  
              fac.GetPartenaire = function (Id_Partenaire) {
                  return $http.get('/CommandeClt/GetPartenaire?Id_CltOrigine=' + Id_Partenaire)
              }
  
              return fac;
          });
  </code></pre>
  
  <p>jsonResult</p>
  
  <pre><code>public JsonResult GetPartenaire(int Id_CltOrigine)
           {
  
  var Nom_CltOrigine = MetiersRepository.ClientSearch(Id_CltOrigine).Select(s =&gt; new Partenaire() { Cd_Partenaire = s.Cd_Partenaire, Adresse_Societe = s.Adresse_Societe }).ToList();
  
      return new JsonResult { Data = Nom_CltOrigine, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
           }
  </code></pre>
  
  <p>Code Rezor , the dropdownlist have already binded</p>
  
  <pre><code>    &lt;select name="Id_Partenaire" ng-model="Id_Partenaire" 
  ng-options="I.Id_Partenaire as I.Cd_Partenaire for I in PartenaireList" 
      ng-change="GetState()"&gt;
                     @{
          foreach (var c in ViewBag.SelectedClientOption) 
          {
                      &lt;option value="@c.Id_Partenaire"&gt;@c.Cd_Partenaire&lt;/option&gt;
          }
           }
       &lt;/select&gt;
  </code></pre>