org manager

This commit is contained in:
yubao
2017-10-27 00:26:06 +08:00
parent b751d8cce8
commit 45a08aaf41
6 changed files with 245 additions and 85 deletions

View File

@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenAuth.Domain;
using OpenAuth.Domain.Interface;
@@ -44,7 +42,7 @@ namespace OpenAuth.Repository
public IEnumerable<Org> GetSubOrgs(string orgId)
{
string cascadeId = "0.";
if (orgId != string.Empty)
if (!string.IsNullOrEmpty(orgId))
{
var org = FindSingle(u => u.Id == orgId);
if (org == null)