Ejemplo n.º 1
0
        public ActionResult EventDetails(int id)
        {
            ViewBag.Style = "alert alert-success";
            EventModelView eventModelView = new EventModelView();

            eventModelView.SelectedEvent     = _eventDetailBL.GetEventId(id);
            eventModelView.CurrentMonthEvent = _eventDetailBL.GetAllEvent().Where(o => o.EventDateFrom.Value.Month == DateTime.Now.Month).ToList();

            return(View(eventModelView));
        }
Ejemplo n.º 2
0
        public ActionResult EditEvent(int id)
        {
            ViewBag.Style = "alert alert-success";
            EventModel eventModel = new EventModel();

            eventModel = _eventDetailBL.GetEventId(id);


            string datetimeFrom = string.Format("{0:yyyy-MM-dd}", eventModel.EventDateFrom);
            string datetimeTo   = string.Format("{0:yyyy-MM-dd}", eventModel.EventDateTo);

            eventModel.EventDateFromFormated = datetimeFrom;
            eventModel.EventDateToFormated   = datetimeTo;

            return(View(eventModel));
        }