mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Syntax improvements
This commit is contained in:
committed by
Andrew Camilleri
parent
a4173a93b7
commit
3eb9fdca6a
@@ -187,7 +187,7 @@ namespace BTCPayServer.Controllers
|
|||||||
return RedirectToAction("PaymentMethods", "Stores", new { storeId });
|
return RedirectToAction("PaymentMethods", "Stores", new { storeId });
|
||||||
}
|
}
|
||||||
|
|
||||||
var vm = this.ParseListQuery(new PullPaymentsModel()
|
var vm = this.ParseListQuery(new PullPaymentsModel
|
||||||
{
|
{
|
||||||
Skip = skip,
|
Skip = skip,
|
||||||
Count = count,
|
Count = count,
|
||||||
@@ -275,12 +275,12 @@ namespace BTCPayServer.Controllers
|
|||||||
string pullPaymentId)
|
string pullPaymentId)
|
||||||
{
|
{
|
||||||
await _pullPaymentService.Cancel(new HostedServices.PullPaymentHostedService.CancelRequest(pullPaymentId));
|
await _pullPaymentService.Cancel(new HostedServices.PullPaymentHostedService.CancelRequest(pullPaymentId));
|
||||||
this.TempData.SetStatusMessageModel(new StatusMessageModel()
|
TempData.SetStatusMessageModel(new StatusMessageModel()
|
||||||
{
|
{
|
||||||
Message = "Pull payment archived",
|
Message = "Pull payment archived",
|
||||||
Severity = StatusMessageModel.StatusSeverity.Success
|
Severity = StatusMessageModel.StatusSeverity.Success
|
||||||
});
|
});
|
||||||
return RedirectToAction(nameof(PullPayments), new { storeId = storeId });
|
return RedirectToAction(nameof(PullPayments), new { storeId });
|
||||||
}
|
}
|
||||||
|
|
||||||
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
||||||
|
|||||||
Reference in New Issue
Block a user