public async Task <IActionResult> Post(Guid id) { var filledModel = FillUblModel.fillUblModel(); var data = await _outboxInvoiceClient.Post(filledModel); return(Ok(data)); }
[HttpPut("update/{id}")] //94b3611a-2f8a-4745-83f6-d411f7afc3df public async Task <IActionResult> Update(Guid id) { /// Önemli: Sadece taslak durumundaki faturalarda değişiklik yapılabilir. var invoiceResponseModel = await _outboxInvoiceClient.Get(id); var updateModel = FillUblModel.fillUblModel(); updateModel.InvoiceId = id; updateModel.GeneralInfoModel.Ettn = id.ToString(); updateModel.GeneralInfoModel.InvoiceNumber = invoiceResponseModel.InvoiceNumber; var data = await _outboxInvoiceClient.Update(id, updateModel); return(Ok(data)); }