...
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Back.Controllers
|
||||
_servUser = servUser;
|
||||
}
|
||||
[HttpGet("GetInvoice/{ID}")]
|
||||
public async Task<ActionResult<InvoiceDTO?>> GetAll(int ID)
|
||||
public async Task<ActionResult<InvoiceDTO?>> Get(int ID)
|
||||
{
|
||||
var claim = HttpContext.User.Claims.First(c => c.Type == "UserID");
|
||||
var UserID = claim.Value;
|
||||
|
@@ -45,7 +45,7 @@
|
||||
private async Task LoadData()
|
||||
{
|
||||
PreloadService.Show(SpinnerColor.Dark);
|
||||
var rsp = await hc.Get($"Invoice/Get/{InvoiceID}/{true}");
|
||||
var rsp = await hc.Get($"TaxPayer/GetInvoice/{InvoiceID}");
|
||||
if (rsp.IsSuccessStatusCode)
|
||||
{
|
||||
invoice = await rsp.Content.ReadFromJsonAsync<InvoiceDTO>();
|
||||
|
Reference in New Issue
Block a user