diff --git a/src/Views/Home/Locations.cshtml b/src/Views/Home/Locations.cshtml
index 11b6d89..d95bf4a 100644
--- a/src/Views/Home/Locations.cshtml
+++ b/src/Views/Home/Locations.cshtml
@@ -120,7 +120,7 @@
try {
const response = await fetch(url, {
- method: 'GET',
+ method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
diff --git a/src/Views/Home/Users.cshtml b/src/Views/Home/Users.cshtml
index c74f6c7..b1547a1 100644
--- a/src/Views/Home/Users.cshtml
+++ b/src/Views/Home/Users.cshtml
@@ -126,7 +126,7 @@
try {
const response = await fetch(url, {
- method: 'GET',
+ method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
diff --git a/src/wwwroot/js/site.js b/src/wwwroot/js/site.js
index 07e0710..bfdde28 100644
--- a/src/wwwroot/js/site.js
+++ b/src/wwwroot/js/site.js
@@ -167,7 +167,7 @@ document.addEventListener('DOMContentLoaded', () => {
async function loadLocationsIntoSelect(selectElement, selectedValue = null) {
try {
- const response = await fetch('/Locations/Index');
+ const response = await fetch('/Locations/GetAll');
const data = await response.json();
const locations = data.locations;
@@ -208,7 +208,7 @@ async function loadLocationsIntoSelect(selectElement, selectedValue = null) {
async function loadUsersIntoSelect(selectElement, selectedValue = null) {
try {
- const response = await fetch('/Users/Index?Cn=false&Sn=false&Title=false&Description=false&JpegPhoto=false&UserPassword=false');
+ const response = await fetch('/Users/GetAll?Cn=false&Sn=false&Title=false&Description=false&JpegPhoto=false&UserPassword=false');
const users = await response.json();
const ts = selectElement.tomselect;