public void CreateNewTiming() { JobTiming newTiming = JobTiming.NewJobTiming(JobItemId, DeveloperId); newTiming.Start(); JobTimings.Add(newTiming); }
public TimeSpan GetActiveEllapsedTime() { JobTiming activeTiming = JobTimings.FirstOrDefault(x => x.IsRunning); if (activeTiming != null) { return(activeTiming.GetEllapsedTime()); } return(TimeSpan.Zero); }
public static JobTiming NewJobTiming(int jobItemId, int developerId) { JobTiming newTiming = _DAL.CreateNewJobTiming(jobItemId, developerId); return(newTiming); }