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)); }
// GET: Tickets public ActionResult Index() { var tickets = _tRepo.GetAllTickets(); return(View(tickets)); }