コード例 #1
0
 public HomeIndexModel()
 {
     this.Title             = "Dashboard";
     this.ProjectListModel  = new ProjectListModel();
     this.FeedListModel     = new FeedListModel();
     this.TimelineListModel = new TimelineListModel();
 }
コード例 #2
0
        public ActionResult List(
                int sourceId,
                int sourceTypeId)
        {
            var model = new TimelineListModel();
            var criteria = new TimelineDataCriteria
            {
                SourceId = new[] { sourceId },
                SourceTypeId = sourceTypeId
            };
            var timelines = TimelineRepository.TimelineFetchInfoList(criteria);

            model.SourceId = sourceId;
            model.SourceTypeId = sourceTypeId;
            model.Timelines = timelines;
            model.Actions.Add("Add a timeline", Url.Action("Create", new { sourceId, sourceTypeId }), "primary");

            return this.View(model);
        }