Fixes the client cancel
This commit is contained in:
@ -61,6 +61,10 @@ namespace Yavsc.Controllers
|
|||||||
{
|
{
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
}
|
}
|
||||||
|
ViewBag.CreatePaymentUrl = Request.ToAbsolute("api/haircut/createpayment/"+id);
|
||||||
|
ViewBag.ExecutePaymentUrl = Request.ToAbsolute("api/payment/execute");
|
||||||
|
ViewBag.Urls=Request.GetPaymentUrls("HairCutCommand",id.ToString());
|
||||||
|
|
||||||
return View (command);
|
return View (command);
|
||||||
}
|
}
|
||||||
public async Task<IActionResult> ClientCancelConfirm(long id)
|
public async Task<IActionResult> ClientCancelConfirm(long id)
|
||||||
@ -233,9 +237,9 @@ namespace Yavsc.Controllers
|
|||||||
var items = model.GetBillItems();
|
var items = model.GetBillItems();
|
||||||
var addition = items.Addition();
|
var addition = items.Addition();
|
||||||
ViewBag.Addition = addition.ToString("C",CultureInfo.CurrentUICulture);
|
ViewBag.Addition = addition.ToString("C",CultureInfo.CurrentUICulture);
|
||||||
ViewBag.CreatePaymentUrl = Request.ToAbsolute("api/haircut/createpayment/"+model.Id);
|
ViewBag.CreatePaymentUrl = Request.ToAbsolute("api/haircut/createpayment/"+model.Id);
|
||||||
ViewBag.ExecutePaymentUrl = Request.ToAbsolute("api/payment/execute");
|
ViewBag.ExecutePaymentUrl = Request.ToAbsolute("api/payment/execute");
|
||||||
ViewBag.Urls=Request.GetPaymentUrls("HairCutCommand",model.Id.ToString());
|
ViewBag.Urls=Request.GetPaymentUrls("HairCutCommand",model.Id.ToString());
|
||||||
|
|
||||||
return View("CommandConfirmation",model);
|
return View("CommandConfirmation",model);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user