示例#1
0
        public ActionResult AllProjects()
        {
            var model = bugTrackerHelper.ActiveProjects().Select(p => new AllProjectsViewModel
            {
                Id            = p.Id,
                Name          = p.Name,
                MembersNumber = p.Users.Count(),
                TicketsNumber = p.Tickets.Count(),
                DateCreated   = p.DateCreated,
                DateUpdated   = p.DateUpdated
            }).ToList();

            return(View(model));
        }