修改BUG:MongoDB新建部门使用Group类
This commit is contained in:
parent
3e9e39bea9
commit
ed26ec0ae2
|
@ -33,7 +33,11 @@ namespace Bootstrap.DataAccess.MongoDB
|
||||||
if (p.Id == "0")
|
if (p.Id == "0")
|
||||||
{
|
{
|
||||||
p.Id = null;
|
p.Id = null;
|
||||||
MongoDbAccessManager.Groups.InsertOne(p as Group);
|
MongoDbAccessManager.Groups.InsertOne(new Group() {
|
||||||
|
GroupName = p.GroupName,
|
||||||
|
Description = p.Description,
|
||||||
|
Roles = new List<string>()
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue