コード例 #1
0
ファイル: DictionaryLogic.cs プロジェクト: soonsoft/TeamWork
        public void OrganizationDictionary(out List <OrganizationSelectItem> parentOrganizations, bool getAll)
        {
            using (TeamDBContext context = new TeamDBContext())
            {
                DatabaseAccess dba = context.DatabaseAccess();

                OrganizationLogic logic = new OrganizationLogic();

                parentOrganizations = logic.GetOrganizationsDict(dba, getAll);
            }
        }
コード例 #2
0
ファイル: DictionaryLogic.cs プロジェクト: soonsoft/TeamWork
 public void OrganizationDictionary(
     out List <OrganizationSelectItem> organizations,
     out List <DepartmentSelectItem> departments,
     out List <PositionSelectItem> positions)
 {
     using (TeamDBContext context = new TeamDBContext())
     {
         DatabaseAccess dba = context.DatabaseAccess();
         using (var conn = dba.GetOpenConnection())
         {
             OrganizationLogic oLogic = new OrganizationLogic();
             organizations = oLogic.GetOrganizationsDict(dba);
             DepartmentLogic dLogic = new DepartmentLogic();
             departments = dLogic.GetDepartmentsDict(dba);
             PositionLogic pLogic = new PositionLogic();
             positions = pLogic.GetPositionsDict(dba);
         }
     }
 }