Syntax improvements

This commit is contained in:
Dennis Reimann
2022-02-24 12:49:16 +01:00
committed by Andrew Camilleri
parent a4173a93b7
commit 3eb9fdca6a

View File

@@ -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)]