예제 #1
0
        public List <User> GetUserListByOrgId(string OrgId)
        {
            var OrgIds  = OrgManagerApp.GetOrgAndChilds(OrgId).Select(t => t.Id).ToArray();
            var userIds = ReleManagerApp.Get(Define.USERORG, false, OrgIds);

            return(Repository.Find(t => userIds.Contains(t.Id)).ToList());
        }
예제 #2
0
 public UserManagerApp(IUnitWork unitWork, IRepository <User> repository,
                       RevelanceManagerApp app, IAuth auth, OrgManagerApp orgManagerApp) : base(unitWork, repository, auth)
 {
     _revelanceApp  = app;
     _orgManagerApp = orgManagerApp;
 }
예제 #3
0
 public OrgManagerController()
 {
     _orgApp = AutofacExt.GetFromFac<OrgManagerApp>();
 }