修改BUG:MongoDB新建角色使用Role类
This commit is contained in:
parent
b7e1c19e20
commit
3e9e39bea9
|
@ -34,7 +34,12 @@ namespace Bootstrap.DataAccess.MongoDB
|
||||||
if (p.Id == "0")
|
if (p.Id == "0")
|
||||||
{
|
{
|
||||||
p.Id = null;
|
p.Id = null;
|
||||||
MongoDbAccessManager.Roles.InsertOne(p as Role);
|
MongoDbAccessManager.Roles.InsertOne(new Role()
|
||||||
|
{
|
||||||
|
RoleName = p.RoleName,
|
||||||
|
Description = p.Description,
|
||||||
|
Menus = new List<string>()
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue