public void UpdateBuilds() { var builds = getBuildsHandler(commit.Id); var job = builds.OrderByDescending(b => b.CreatedAt).FirstOrDefault(); if (job == null) { return; } Build = new BuildViewModel(job); BuildStatus = Build.BuildStatus; Duration = Build.Duration; }
public void UpdateBuilds() { var builds = getBuildsHandler(commit.Id); Build = builds.Select(x => new BuildViewModel(x)).FirstOrDefault(); }