public ActionResult CalendarDisplaySimple(CalendarViewModel model) { CalendarSimpleSettings settings = new CalendarSimpleSettings(); if (this.WidgetPayload is CalendarSimpleSettings) { settings = (CalendarSimpleSettings)this.WidgetPayload; settings.LoadData(); model.SiteID = settings.SiteID; model.AlternateViewFile = settings.AlternateViewFile; } ModelState.Clear(); model.LoadData(model.SiteID, true); if (String.IsNullOrEmpty(model.AlternateViewFile)) { return(PartialView(model)); } else { return(PartialView(model.AlternateViewFile, model)); } }
public ActionResult CalendarDisplaySimple(CalendarViewModel model) { CalendarSimpleSettings settings = new CalendarSimpleSettings(); if (this.WidgetPayload is CalendarSimpleSettings) { settings = (CalendarSimpleSettings)this.WidgetPayload; settings.LoadData(); model.SiteID = settings.SiteID; model.AlternateViewFile = settings.AlternateViewFile; } ModelState.Clear(); model.LoadData(model.SiteID, true); if (String.IsNullOrEmpty(model.AlternateViewFile)) { return PartialView(model); } else { return PartialView(model.AlternateViewFile, model); } }
public ActionResult CalendarDateInfo(DateTime?calendardate) { DateTime theEventDate = calendardate ?? DateTime.Now.Date; CalendarSimpleSettings payload = new CalendarSimpleSettings(); if (this.WidgetPayload is CalendarSimpleSettings) { payload = (CalendarSimpleSettings)this.WidgetPayload; payload.LoadData(); } DateModel model = new DateModel(theEventDate, payload.SiteID); if (String.IsNullOrEmpty(payload.AlternateViewFile)) { return(PartialView(model)); } else { return(PartialView(payload.AlternateViewFile, model)); } }
public ActionResult CalendarDateInfo(DateTime? calendardate) { DateTime theEventDate = calendardate ?? DateTime.Now.Date; CalendarSimpleSettings payload = new CalendarSimpleSettings(); if (this.WidgetPayload is CalendarSimpleSettings) { payload = (CalendarSimpleSettings)this.WidgetPayload; payload.LoadData(); } DateModel model = new DateModel(theEventDate, payload.SiteID); if (String.IsNullOrEmpty(payload.AlternateViewFile)) { return PartialView(model); } else { return PartialView(payload.AlternateViewFile, model); } }