mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 01:58:01 +08:00
Routine Update
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user