Пример #1
0
        public ActionResult ConferenceTime()
        {
            var    conference      = calendarItemRepository.GetFromType(CalendarEntryType.Conference);
            string startTime       = dateTimeFormatter.FormatTime(conference.StartDate);
            string endTime         = dateTimeFormatter.FormatTime(conference.EndDate.Value);
            string conferenceTimes = string.Format("{0} to {1}", startTime, endTime);

            return(new ContentResult {
                Content = conferenceTimes
            });
        }
Пример #2
0
        public string FormatTime(DateTime moment) =>

        _dateTimeFormatter.FormatTime(Locale, moment);