コード例 #1
0
        public ActionResult Dashboard()
        {
            var pmDashboard = new PMDashboardViewModel {
            };

            pmDashboard.ApplicationUserId = User.Identity.GetUserId();
            pmDashboard.Projects          = _pBL.GetAllProjects().ToList();

            var tickets       = _tBL.GetAllTickets().ToList();
            var currentUserId = User.Identity.GetUserId();
            var currentUser   = _userBL.GetAUser(currentUserId);

            return(View(pmDashboard));
        }
コード例 #2
0
        // GET: Tickets
        public ActionResult Index()
        {
            var tickets = _tRepo.GetAllTickets();

            return(View(tickets));
        }