fix updateOrder
This commit is contained in:
parent
70ae0159af
commit
aeef227dfc
@ -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 })
|
||||
}
|
||||
)
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
using HardwareShopContracts.BindingModels;
|
||||
using HardwareShopContracts.BuisnessLogicsContracts;
|
||||
using HardwareShopContracts.BusinessLogicsContracts;
|
||||
using HardwareShopContracts.SearchModels;
|
||||
using HardwareShopContracts.ViewModels;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
Loading…
Reference in New Issue
Block a user