On add of new script, clear out ID just in case
This commit is contained in:
parent
745665f091
commit
37895d3f86
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ namespace LANCommander.Controllers
|
|||
[HttpPost]
|
||||
public async Task<IActionResult> Add(Script script)
|
||||
{
|
||||
script.Id = Guid.Empty;
|
||||
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
script = await ScriptService.Add(script);
|
||||
|
|
Loading…
Add table
Reference in a new issue