From f4778083a8f1dc4daedd267f2b18363247e8c91b Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 15 May 2017 15:36:01 +0200 Subject: [PATCH] message explicite --- Yavsc/ApiControllers/HairCut/HairCutController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yavsc/ApiControllers/HairCut/HairCutController.cs b/Yavsc/ApiControllers/HairCut/HairCutController.cs index af4c057e..10087567 100644 --- a/Yavsc/ApiControllers/HairCut/HairCutController.cs +++ b/Yavsc/ApiControllers/HairCut/HairCutController.cs @@ -93,7 +93,7 @@ namespace Yavsc.ApiControllers Include(q => q.Client.PostalAddress).Include(q => q.Prestation).Include(q=>q.Regularisation) .SingleAsync(q => q.Id == id); if (query.PaymentId!=null) - return new BadRequestObjectResult(new { error = "Already paid" }); + 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);