Compare commits
2 Commits
c9922e9522
...
eda158bcab
Author | SHA1 | Date | |
---|---|---|---|
eda158bcab | |||
5c0fcb5e39 |
@ -396,6 +396,21 @@ namespace BankManagersClientApp.Controllers
|
||||
Response.Redirect("Withdrawals");
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public WithdrawalViewModel? GetWithdrawal(int withdrawalId)
|
||||
{
|
||||
if (APIClient.Client == null)
|
||||
{
|
||||
throw new Exception("Вы как суда попали? Суда вход только авторизованным");
|
||||
}
|
||||
var result = APIClient.GetRequest<WithdrawalViewModel>($"api/withdrawal/getwithdrawal?withdrawalid={withdrawalId}");
|
||||
if (result == null)
|
||||
{
|
||||
return default;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public List<int> GetAccounts(int withdrawalId)
|
||||
{
|
||||
|
@ -59,7 +59,13 @@
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
});
|
||||
method: "GET",
|
||||
url: "/Home/GetWithdrawal",
|
||||
data: { withdrawalId: withdrawal },
|
||||
success: function (result) {
|
||||
$('#sum').val(result.sum)
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
check();
|
||||
|
Loading…
Reference in New Issue
Block a user