Ejemplo n.º 1
0
        public ActionResult Dashboard()
        {
            IEditor _editor = new Editor();

            ActionResult result = this.ValidateReviewerToken();

            if (result != null)
            {
                return(result);
            }

            List <Paper> assignedPapers = new List <Paper>();

            assignedPapers = _review.GetAssignedPaper((int)UserId);

            List <Users> reviewers = _review.GetAllReviewers();

            return(View("Dashboard", assignedPapers));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            ActionResult result = this.ValidateEditorToken();

            if (result != null)
            {
                return(result);
            }

            //Getting the Papers
            List <Paper> papers = _editor.GetAllPapers();

            //Getting the Reviwer
            List <Users> reviewers = _review.GetAllReviewers();

            ViewData["Reviewers"] = new SelectList((System.Collections.IEnumerable)reviewers, "UserId", string.Format("{0}, {1}", LastName, FirstName));

            List <Queries> queries = _editor.GetQueries();

            var objResults = new Tuple <List <Paper>, List <Users>, List <Queries> >(papers, reviewers, queries);

            ViewBag.UserType = "Editor";
            return(View("Dashboard", objResults));
        }