fix updateOrder

This commit is contained in:
Николай 2023-05-16 15:57:14 +04:00
parent 70ae0159af
commit aeef227dfc
2 changed files with 5 additions and 9 deletions

View File

@ -115,8 +115,7 @@
{
url: `/Storekeeper/DeleteOrder`,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({ id = 0 })
data: { id: order }
}
)
})
@ -126,8 +125,7 @@
{
url: `/Storekeeper/UpdateOrder`,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({ id = order, status = 1 })
data: { id : order, status : 1 }
}
)
})
@ -137,8 +135,7 @@
{
url: `/Storekeeper/UpdateOrder`,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({ id = order, status = 2 })
data: { id : order, status : 2 }
}
)
})
@ -148,8 +145,7 @@
{
url: `/Storekeeper/UpdateOrder`,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({ id = order, status = 3 })
data: JSON.stringify({ id : order, status : 3 })
}
)
})

View File

@ -1,5 +1,5 @@
using HardwareShopContracts.BindingModels;
using HardwareShopContracts.BuisnessLogicsContracts;
using HardwareShopContracts.BusinessLogicsContracts;
using HardwareShopContracts.SearchModels;
using HardwareShopContracts.ViewModels;
using Microsoft.AspNetCore.Mvc;