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()); }
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>(); }