Вот угловая часть: < /p>
Код: Выделить всё
this.commonService.updatescheduleFee(this.flatfeeModel).then((response: ResponseModel) => {
this.toasterMessageService.showSuccess('Fee Schedule Updated Successfully!');
});
< /code>
Вот обновление API, которое нажимает с помощью параметров: < /p>
async updatescheduleFee(params: any) {
params['amount2'] = 100;
console.log('FeeSchedule-params',params);
return await this.ws.put(`${this.billingApiUrl}/invoice/FeeSchedule`,params).toPromise();
}
< /code>
Вот часть API, где модель показывает NULL для значений, отправляемых через Angular: < /p>
[HttpPut("FeeSchedule")]
public async Task UpdateFeeSchedule(FeeScheduleRequest1Dto model)
{
try
{
}
}
Любая помощь будет более чем заметной.
Подробнее здесь: https://stackoverflow.com/questions/755 ... arp-webapi