示例#1
0
        public ActionResult <DashboardList> GetDashboards()
        {
            var dashboards = _dashboardService.GetAll().ToList();

            return(new DashboardList
            {
                Items = dashboards.Select(x => new DashboardListItem
                {
                    Id = x.Id,
                    Name = x.Name,
                    Team = x.Team,
                    LastModified = x.LastModified
                }).ToList(),
                TotalCount = dashboards.Count
            });
        }