title: Passing params from AngularJS to C# Controller
body: <p>I've tried researching this but I can't find anything anywhere that's helpful or any relevant answers. </p>
  
  <p>For my angular controller I have:</p>
  
  <pre><code>app.controller('AdminCtrl', function ($scope, $http) {
  $scope.data = {
      Name: '',
      Password: ''
  },
  $scope.login = function (data) {
      $http({
          method: 'POST',
          url: '/login/postlogin',
          data: JSON.stringify({
              data: $scope.data
          }),
          contentType: "application/json",
          dataType: "json"
      }).success(function (data) {
          alert('success!');
      }).error(function (error) {
          alert(error.message);
      })
  }
  });
  </code></pre>
  
  <p>For my c# controller I have a very basic setup:</p>
  
  <pre><code>    [HttpPost]
      public string PostLogin(string data) {          
          return string.Empty;
      }
  </code></pre>
  
  <p>My issue is that inside of the c# controller, data is always null. Does anyone know how to pass the name and password params over to the c# controller? I know for a fact that I am recieving values for them from my textboxes that I have. I am also recieving the success message/alert.Thanks!</p>