mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
采用全新的数据库架构
This commit is contained in:
22
OpenAuth.App/OrgManagerApp.cs
Normal file
22
OpenAuth.App/OrgManagerApp.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Domain.Interface;
|
||||
|
||||
namespace OpenAuth.App
|
||||
{
|
||||
public class OrgManagerApp
|
||||
{
|
||||
private IOrgRepository _repository;
|
||||
|
||||
public OrgManagerApp(IOrgRepository repository)
|
||||
{
|
||||
_repository = repository;
|
||||
}
|
||||
|
||||
|
||||
public IEnumerable<Org> GetAll()
|
||||
{
|
||||
return _repository.LoadOrgs();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user