Пример #1
0
        // GET: Projects
        public ActionResult Index()
        {
            if (projectHelper.CanViewAllProjects())
            {
                ViewBag.AllProjects = new List <Project>(db.Projects.ToList().OrderByDescending(p => p.Created).ToList());
            }


            return(View(projectHelper.ListUserProjects(User.Identity.GetUserId())));
        }