I need to pass two parameter from typescript with angular.js to Controller. i tried this way but it didn't work. accutually i don't know that the way of i pass this parameters are correct
IncrementDonation(donationId: number, donationAmount: number, successCallback: Function): void {
this.httpService.put("/API/PrivateAPI/MyGivingPortfolio?donationId=" + donationId + "&donationAmount=" + donationAmount).success(function () {
successCallback();
});
}
values of donation Id and donation amount is passed from view.
This is my controller code.
public bool Update(int donationId, decimal donationAmount)
{
// Some Code goes here
}