/// <summary>
        /// Get breaks list for a given day of a week
        /// </summary>
        /// <param name="html">Represents support for rendering HTML controls in a strongly typed view</param>
        /// <returns>Breaks list in an Html-representation</returns>
        public static IEnumerable <BreakControlInfo> GetBreaks(this HtmlHelper <DayOfTheWeek> html)
        {
            int    c        = 0;
            string fromName = "from{0}";
            string toName   = "to{0}";

            IList <BreakHours> breaks = html.ViewData.Model.Breaks;

            if (breaks != null)
            {
                foreach (BreakHours breakHours in breaks)
                {
                    yield return(new BreakControlInfo
                    {
                        IsDeleteButtonVisible = WeeklyScheduleHtmlHelper.Visible,
                        BreakControl = WeeklyScheduleHtmlHelper.GetTimeInterval(html, breakHours.From, WeeklyScheduleHtmlHelper.GetFormattedName(fromName, c), breakHours.To, WeeklyScheduleHtmlHelper.GetFormattedName(toName, c))
                    });

                    c++;
                }
            }

            yield return(new BreakControlInfo
            {
                IsDeleteButtonVisible = WeeklyScheduleHtmlHelper.Hidden,
                BreakControl = WeeklyScheduleHtmlHelper.GetTimeInterval(html, new TimeSpan(), WeeklyScheduleHtmlHelper.GetFormattedName(fromName, c), new TimeSpan(), WeeklyScheduleHtmlHelper.GetFormattedName(toName, c))
            });
        }
        /// <summary>
        /// Get Html representation of the working hours
        /// </summary>
        /// <param name="html">Represents support for rendering HTML controls in a strongly typed view</param>
        /// <returns>Html representation of the working hours</returns>
        public static IHtmlString GetWorkHours(this HtmlHelper <DayOfTheWeek> html)
        {
            TimeSpan open;
            TimeSpan close;

            if (html.ViewData.Model.WorkingTime == WorkingTime.WorkHours)
            {
                open  = html.ViewData.Model.WorkHours.Open;
                close = html.ViewData.Model.WorkHours.Close;
            }
            else
            {
                open  = new TimeSpan();
                close = new TimeSpan();
            }

            return(WeeklyScheduleHtmlHelper.GetTimeInterval(html, open, "open", close, "close"));
        }