Esempio n. 1
0
 public bool HasTimeEntry(TimeEntry timeEntry)
 => _timeEntries.Any(t => t.DateHourPointed.Hour.Equals(timeEntry.DateHourPointed.Hour) && t.DateHourPointed.Minute.Equals(timeEntry.DateHourPointed.Minute));
Esempio n. 2
0
 public void RemoveTimeEntry(TimeEntry timeEntry, HourPointConfigurations hourPointConfigurations)
 {
     _timeEntries.RemoveAll(time => time.Id.Equals(timeEntry.Id));
     RecalculateTimes(hourPointConfigurations);
 }