diff --git a/LANCommander/Controllers/ScriptsController.cs b/LANCommander/Controllers/ScriptsController.cs index 704acc0..7211ba2 100644 --- a/LANCommander/Controllers/ScriptsController.cs +++ b/LANCommander/Controllers/ScriptsController.cs @@ -44,6 +44,8 @@ namespace LANCommander.Controllers [HttpPost] public async Task Add(Script script) { + script.Id = Guid.Empty; + if (ModelState.IsValid) { script = await ScriptService.Add(script);