public IHttpActionResult GetHoursInDay(int id)
        {
            HourInDay result = BusinessLayer.GetRow <HourInDay>(id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
Exemplo n.º 2
0
        private void OpenWorldBtn_Click(object sender, RoutedEventArgs e)
        {
            SecInMinutTxt.Text  = SecondsInMin.ToString();
            MinInHourTxt.Text   = MinInHour.ToString();
            HourInDayTxt.Text   = HourInDay.ToString();
            DayInMonthTxt.Text  = DayInMonth.ToString();
            MonthInYearTxt.Text = MonthInYear.ToString();
            DayNamesTxt.Text    = "";
            foreach (var item in DayName)
            {
                DayNamesTxt.Text += item;
                DayNamesTxt.Text += " ";
            }
            MonthNamesTxt.Text = "";
            foreach (var item in MonthName)
            {
                MonthNamesTxt.Text += item;
                MonthNamesTxt.Text += " ";
            }

            WorldSettingsGrid.Visibility = Visibility.Visible;
        }