private WeekDay GetCopy(WeekDay weekDay)
 {
     return new WeekDay()
     {
         Day = weekDay.Day,
         IsActive = weekDay.IsActive,
         StartTime = weekDay.StartTime,
         EndTime = weekDay.EndTime
     };
 }
Ejemplo n.º 2
0
        public static string BuildWeekDayString(WeekDay weekDay)
        {
            if (weekDay == null)
                return String.Empty;

            return weekDay.Day.ToString() + weekDay.EndTime.ToString() + weekDay.StartTime.ToString() + weekDay.IsActive.ToString();
        }
 public WeekDayViewModel(WeekDay weekDay)
 {
     this.Model = weekDay;
 }