public ActionResult MyIndex() { var userId = User.Identity.GetUserId(); var myTickets = projectHelper.ListUserTickets(userId); return(View("Index", myTickets.Where(t => t.TicketStatus.Name != "Completed").ToList())); }
public ActionResult Index() { db.Tickets.Where(t => !t.Deleted).OrderBy(t => t.TicketPriority.Importance).ToList(); return(View(projectsHelper.ListUserTickets(User.Identity.GetUserId()))); }