Fix on the admin user.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user