Fix on the admin user.

This commit is contained in:
Sébastien André
2021-03-18 15:50:41 +01:00
parent b192bb7192
commit 7caf1d7df2
16 changed files with 80 additions and 37 deletions

View File

@@ -33,17 +33,18 @@ namespace skydiveLogs_api.Infrastructure
return _col.Update(updatedDz);
}
public bool Add(DropZone newDz)
public int Add(DropZone newDz)
{
var result = true;
int result;
try
{
_col.Insert(newDz);
var tmp = _col.Insert(newDz);
result = tmp.AsInt32;
}
catch
{
result = false;
result = 0;
}
return result;