Building successfull urls

This commit is contained in:
2017-05-16 02:16:09 +02:00
parent 3ea7f3e933
commit 60c81070c0
10 changed files with 51 additions and 37 deletions

View File

@ -95,8 +95,7 @@ namespace Yavsc.ApiControllers
if (query.PaymentId!=null)
return new BadRequestObjectResult(new { error = "An existing payment process already exists" });
query.SelectedProfile = _context.BrusherProfile.Single(p => p.UserId == query.PerformerId);
var payment = apiContext.CreatePayment(query, "HairCutCommand", "sale", _logger);
var payment = Request.CreatePayment("HairCutCommand",apiContext, query, "sale", _logger);
switch (payment.state)
{
case "created":