Routine Update

This commit is contained in:
yubaolee
2015-11-05 23:41:06 +08:00
parent 4ee0a395e2
commit e2f7e2cf42
3 changed files with 11 additions and 11 deletions

View File

@@ -92,8 +92,7 @@ namespace OpenAuth.App
public void DelOrg(int id)
{
var delOrg = _repository.FindSingle(u => u.Id == id);
if (delOrg == null)
throw new Exception("未能找到要删除的对象");
if (delOrg == null) return;
_repository.Delete(u => u.CascadeId.Contains(delOrg.CascadeId));
}