Beispiel #1
0
        public ActionResult Index(string id)
        {
            var tmpDate = DateTime.Now;

            ActualDay = GetFirstDayOfWeek(DateTime.Now.AddDays(Int32.Parse(id)));

            CalendarModel = new CalendarModel(new Storage());

            try
            {
                CalendarModel.logUser(stateManager.load("login"));
                log.Info("Calendar Started");
            } catch (Exception) {
            }

            loadData();

            ViewBag.Days = Days;
            ViewBag.Date = Int32.Parse(id);

            return(View());
        }