- Timestamp:
- 01/20/12 14:18:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Administration/AdministrationService.cs
r7360 r7384 172 172 173 173 using (OKBDataContext okb = new OKBDataContext()) { 174 return okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId).Select(x => x.User Id).ToArray();174 return okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId).Select(x => x.UserGroupId).ToArray(); 175 175 } 176 176 } … … 180 180 using (OKBDataContext okb = new OKBDataContext()) { 181 181 okb.AlgorithmUsers.DeleteAllOnSubmit(okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId)); 182 okb.AlgorithmUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.AlgorithmUser { AlgorithmId = algorithmId, User Id = x }));182 okb.AlgorithmUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.AlgorithmUser { AlgorithmId = algorithmId, UserGroupId = x })); 183 183 okb.SubmitChanges(); 184 184 } … … 297 297 298 298 using (OKBDataContext okb = new OKBDataContext()) { 299 return okb.ProblemUsers.Where(x => x.ProblemId == problemId).Select(x => x.User Id).ToArray();299 return okb.ProblemUsers.Where(x => x.ProblemId == problemId).Select(x => x.UserGroupId).ToArray(); 300 300 } 301 301 } … … 305 305 using (OKBDataContext okb = new OKBDataContext()) { 306 306 okb.ProblemUsers.DeleteAllOnSubmit(okb.ProblemUsers.Where(x => x.ProblemId == problemId)); 307 okb.ProblemUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.ProblemUser { ProblemId = problemId, User Id = x }));307 okb.ProblemUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.ProblemUser { ProblemId = problemId, UserGroupId = x })); 308 308 okb.SubmitChanges(); 309 309 }
Note: See TracChangeset
for help on using the changeset viewer.