Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/13/11 19:29:56 (13 years ago)
Author:
ascheibe
Message:

#1233 adapted Administrator UI to be more like OKB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs

    r6743 r6756  
    233233    public DT.Job GetJob(Guid id) {
    234234      using (var db = CreateContext()) {
    235         return AddStatsToExperiment(db, DT.Convert.ToDto(db.Jobs.SingleOrDefault(x => x.JobId == id)));
    236       }
    237     }
    238 
    239     private DT.Job AddStatsToExperiment(HiveDataContext db, DT.Job exp) {
     235        return AddStatsToJob(db, DT.Convert.ToDto(db.Jobs.SingleOrDefault(x => x.JobId == id)));
     236      }
     237    }
     238
     239    private DT.Job AddStatsToJob(HiveDataContext db, DT.Job exp) {
    240240      if (exp == null)
    241241        return null;
     
    250250    public IEnumerable<DT.Job> GetJobs(Expression<Func<Job, bool>> predicate) {
    251251      using (var db = CreateContext()) {
    252         return db.Jobs.Where(predicate).Select(x => AddStatsToExperiment(db, DT.Convert.ToDto(x))).ToArray();
     252        return db.Jobs.Where(predicate).Select(x => AddStatsToJob(db, DT.Convert.ToDto(x))).ToArray();
    253253      }
    254254    }
Note: See TracChangeset for help on using the changeset viewer.