コード例 #1
0
        // Get both issues assigned to user (user is a technician or admin id any exist) and
        // the issues reported by user (user is technician, admin or general)
        public AdmUserIssuesViewModel GetAllIssuesForSingleUser(string userId)
        {
            AdmUserIssuesViewModel model = new AdmUserIssuesViewModel();

            model.AssignedIssues = GetUserAssignedIssues(userId);
            model.ReportedIssues = GetUserReportedIssues(userId);
            model.UserName       = GetUserDisplayName(userId);

            return(model);
        }
コード例 #2
0
        // userID can be for technician, admin, or general user - think about renaming
        public ActionResult Technician(string userId)
        {
            AdmUserIssuesViewModel model = _ticketAdapter.GetAllIssuesForSingleUser(userId);

            return(View(model));
        }