完成机构与用户管理

This commit is contained in:
yubaolee
2015-11-13 21:33:53 +08:00
parent 8ab37845bc
commit 4dac594250
210 changed files with 74200 additions and 73971 deletions

View File

@@ -14,5 +14,15 @@ namespace OpenAuth.Repository
{
return Find();
}
public IEnumerable<Org> LoadByUser(int userId)
{
var result = from userorg in Context.UserOrgs
join org in Context.Orgs on userorg.OrgId equals org.Id
where userorg.UserId == userId
select org;
return result;
}
}
}