Compare commits

..

2 Commits

Author SHA1 Message Date
astankovmi f6269e457e OK
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
2026-06-09 02:36:34 +03:00
astankovmi 71ae1df57a OK 2026-06-09 02:35:39 +03:00
2 changed files with 2 additions and 0 deletions
@@ -144,6 +144,7 @@ else
//id_type = listDT.Count + 1; //id_type = listDT.Count + 1;
var a = listDT.Select(listDT => listDT.Id).ToList(); var a = listDT.Select(listDT => listDT.Id).ToList();
id_type = Enumerable.Range(1, int.MaxValue).FirstOrDefault(i => !a.Contains(i)); id_type = Enumerable.Range(1, int.MaxValue).FirstOrDefault(i => !a.Contains(i));
} }
} }
private async Task SaveType() private async Task SaveType()
+1
View File
@@ -80,4 +80,5 @@ public class DeviceController : ControllerBase
return Ok(); return Ok();
} }
} }
} }