Routine Update

This commit is contained in:
yubaolee
2015-11-25 00:00:49 +08:00
parent ea76ebc35d
commit 5d3d246165
3 changed files with 20 additions and 7 deletions

View File

@@ -57,10 +57,9 @@ namespace OpenAuth.App
/// <exception cref="System.Exception">未能找到该组织的父节点信息</exception>
public int AddOrUpdate(Org org)
{
ChangeModuleCascade(org);
if (org.Id == 0)
{
ChangeModuleCascade(org);
_repository.Add(org);
}
else