From 1843955f7ef3523cb233d797a3c800ff32f0208e Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 15 May 2017 15:38:14 +0200 Subject: [PATCH] payment urls --- .../HairCutCommand/CommandConfirmation.cshtml | 21 +++++-------------- .../DisplayTemplates/HairCutQuery.cshtml | 5 ++++- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/Yavsc/Views/HairCutCommand/CommandConfirmation.cshtml b/Yavsc/Views/HairCutCommand/CommandConfirmation.cshtml index 3fc840e9..df7a943d 100644 --- a/Yavsc/Views/HairCutCommand/CommandConfirmation.cshtml +++ b/Yavsc/Views/HairCutCommand/CommandConfirmation.cshtml @@ -79,25 +79,14 @@ -
Facture
-
TODO
+
TODO Facture
+
Facture
@Html.DisplayNameFor(m=>m.Regularisation)
-
@Html.DisplayFor(m=>m.Regularisation,new { PaymentUrl = "/api/haircut/createpayment/"+Model.Id.ToString() })
+
@Html.DisplayFor(m=>m.Regularisation,new { + PaymentUrl = "/api/haircut/createpayment/"+Model.Id.ToString(), + SuccessUrl = "/HairCutCommand/Details/"+Model.Id.ToString() })
- - - - - - - - - - - - - diff --git a/Yavsc/Views/Shared/DisplayTemplates/HairCutQuery.cshtml b/Yavsc/Views/Shared/DisplayTemplates/HairCutQuery.cshtml index f59206d4..6cf25395 100644 --- a/Yavsc/Views/Shared/DisplayTemplates/HairCutQuery.cshtml +++ b/Yavsc/Views/Shared/DisplayTemplates/HairCutQuery.cshtml @@ -21,7 +21,10 @@
@Html.DisplayFor(m=>m.AdditionalInfo)
@Html.DisplayNameFor(m=>m.Regularisation)
-
@Html.DisplayFor(m=>m.Regularisation,new { PaymentUrl = "/api/haircut/createpayment/"+Model.Id.ToString() })
+
@Html.DisplayFor(m=>m.Regularisation,new { + PaymentUrl = "/api/haircut/createpayment/"+Model.Id.ToString(), + SuccessUrl = "/HairCutCommand/Details/"+Model.Id.ToString() + })