diff --git a/Marco.Pms.Services/Controllers/CollectionController.cs b/Marco.Pms.Services/Controllers/CollectionController.cs index 57a9389..872baf2 100644 --- a/Marco.Pms.Services/Controllers/CollectionController.cs +++ b/Marco.Pms.Services/Controllers/CollectionController.cs @@ -153,6 +153,7 @@ namespace Marco.Pms.Services.Controllers /// /// The unique identifier of the invoice. /// Returns invoice details with associated data or a NotFound/BadRequest response. + [HttpGet("invoice/details/{id}")] public async Task GetInvoiceDetailsAsync(Guid id) { @@ -234,8 +235,8 @@ namespace Marco.Pms.Services.Controllers _logger.LogWarning("Invoice Number {InvoiceNumber} is greater than 17 charater", model.InvoiceNumber); return BadRequest(ApiResponse.ErrorResponse( - "Invoice Number {InvoiceNumber} is greater than 17 charater", - "Invoice Number {InvoiceNumber} is greater than 17 charater", 400)); + "Invoice Number cannot be greater than 17 charater", + "Invoice Number is greater than 17 charater", 400)); } // Validate date sequence