title: id showing undefined when trying to implement delete in angularjs
body: <p>Trying to implement delete funtion in angularjs. The backend in asp.net is working fine. when i check with postman its working fine. now am trying to the front end for that. when i hit the delete button. its not getting the UId. its showing like this.</p>
  
  <pre><code>http://localhost:50802/api/User/BUser/[object%20Object]
  </code></pre>
  
  <p>am totally new to angular. i dont know whether this angular code is correct or not.And another thing is i need to implement user confirmation popup window also. please help me...</p>
  
  <p>angular controller.</p>
  
  <pre><code>$scope.DeleteUser = function (data, UId) {
          $http({
              method: "post",
              url: urls.api + 'User/BUser/' + UId,
  
              data: JSON.stringify(data)
          }).then(function (response) {
              alert(response.data);
  
          })
      };
  </code></pre>
  
  <p>HTML </p>
  
  <pre><code> &lt;tr ng-repeat="d in UserList"&gt;
  
                          &lt;td&gt;{{d.description}}&lt;/td&gt;
                          &lt;td&gt;{{d.path}}&lt;/td&gt;
                          &lt;td&gt;&lt;button ng-click="DeleteUser()"&gt;Delete &lt;/button&gt;&lt;/td&gt;
  
                      &lt;/tr&gt;
  </code></pre>
  
  <p>here my Asp.net Controller </p>
  
  <pre><code>[HttpDelete]
          [Route("DeleteBanner/{UId}")]
          public async Task&lt;IHttpActionResult&gt; DeleteBanner(int UId)
          {
              int? result = await _service.DeleteBannerAsync(UId);
  
              return Ok();
  
          }
  </code></pre>