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

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