public void ChangeBankOfHours(BankOfHoursType bankOfHoursType)
 {
     if (Enum.IsDefined(typeof(BankOfHoursType), bankOfHoursType))
     {
         BankOfHours = bankOfHoursType;
     }
 }
 public HourPointConfigurations(DaysOfWeek workDays, BankOfHoursType bankOfHours, TimeSpan officeHour, TimeSpan lunchTime, TimeSpan startWorkTime, TimeSpan toleranceTime, Guid userId, decimal hourValue = 0m)
 {
     WorkDays      = workDays;
     BankOfHours   = bankOfHours;
     OfficeHour    = officeHour;
     LunchTime     = lunchTime;
     StartWorkTime = startWorkTime;
     ToleranceTime = toleranceTime;
     UserId        = userId;
     HourValue     = hourValue;
     Validate();
 }