diff --git a/HardwareShop/HardwareShopClientApp/Views/Storekeeper/Orders.cshtml b/HardwareShop/HardwareShopClientApp/Views/Storekeeper/Orders.cshtml index ea3d008..b22745b 100644 --- a/HardwareShop/HardwareShopClientApp/Views/Storekeeper/Orders.cshtml +++ b/HardwareShop/HardwareShopClientApp/Views/Storekeeper/Orders.cshtml @@ -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 }) } ) }) diff --git a/HardwareShop/HardwareShopRestApi/Controllers/ComponentController.cs b/HardwareShop/HardwareShopRestApi/Controllers/ComponentController.cs index c36961e..dcb4167 100644 --- a/HardwareShop/HardwareShopRestApi/Controllers/ComponentController.cs +++ b/HardwareShop/HardwareShopRestApi/Controllers/ComponentController.cs @@ -1,5 +1,5 @@ using HardwareShopContracts.BindingModels; -using HardwareShopContracts.BuisnessLogicsContracts; +using HardwareShopContracts.BusinessLogicsContracts; using HardwareShopContracts.SearchModels; using HardwareShopContracts.ViewModels; using Microsoft.AspNetCore.Mvc;