public void PositionDictionary(out List <PositionSelectItem> Positions) { using (TeamDBContext context = new TeamDBContext()) { DatabaseAccess dba = context.DatabaseAccess(); PositionLogic logic = new PositionLogic(); Positions = logic.GetPositionsDict(dba); } }
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); } } }