Example #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());
        }
Example #2
0
 public UserManagerApp(IUnitWork unitWork, IRepository <User> repository,
                       RevelanceManagerApp app, IAuth auth, OrgManagerApp orgManagerApp) : base(unitWork, repository, auth)
 {
     _revelanceApp  = app;
     _orgManagerApp = orgManagerApp;
 }
 public OrgManagerController()
 {
     _orgApp = AutofacExt.GetFromFac<OrgManagerApp>();
 }