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 }); }