Esempio n. 1
0
        public DateTime getEndTimeWithPause(IPauseTimesRepository pauseTimesRepository, ITimeRepository timeRepository, string comboBoxItems, string comboBoxOperations, string textBoxCount)
        {
            checkingForPause = new CheckingForPause(pauseTimesRepository);
            DateTime time = DateTime.Now;
            DateTime endTimeWithoutPauses = getEndTime(time, timeRepository.GetTime(comboBoxItems, comboBoxOperations), Int32.Parse(textBoxCount), timeRepository.GetSetupTime(comboBoxItems, comboBoxOperations));

            DateTime endTime = endTimeWithoutPauses.Add(checkingForPause.PauseTimes(getStartTimeInPause, time, endTimeWithoutPauses));

            return(endTime);
        }
Esempio n. 2
0
 public DateTime Get()
 {
     return(timeRepository.GetTime());
 }
Esempio n. 3
0
 public IActionResult Get()
 {
     return(Ok(_timeRepository.GetTime()));
 }