From c69cef7fa90f2d6d31bde514df8ff312a9d90679 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:44:00 -0400 Subject: [PATCH] Add HttpPut route to EditWorkorder endpoint - services/api.js sends PUT for updates, controller only accepted POST - Add [HttpPut("{id:int}")] alongside existing [HttpPost] --- Api.SeaHavenIndustries/Controllers/WorkOrderController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs b/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs index 79939b3..cb53b5b 100644 --- a/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs +++ b/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs @@ -175,6 +175,7 @@ namespace Api.SeaHavenIndustries.Controllers [HttpPost] + [HttpPut("{id:int}")] [Route("EditWorkorder")] public async Task Editworkorder([FromBody] EditWorkorder_DTO model) {