public ActionResult Timeline(EntranceTableData data) { if (data.Validation()) { return(Content(string.Format("<b class=\"message_error\">Internal error. '{0}'</b>", data.ErrorMessage))); } StatisticManager manager = new StatisticManager(); TimelineModel model = new TimelineModel(); model.Data = manager.LoadTimeline(data); return(View("~/Views/Statistic/Timeline.cshtml", model)); }