Example #1
0
        public ActionResult SendReminderEmail(int?id)
        {
            if (id.HasValue)
            {
                var review = ReviewObject.GetReview(id.Value);
                if (review != null)
                {
                    review.SendReminderEmail();
                    return(GetReviewersList(review.MainId));
                }
            }

            return(null);
        }
Example #2
0
        public ActionResult SendIndividualReminder(int?id)
        {
            if (id.HasValue)
            {
                var review = ReviewObject.GetReview(id.Value);
                if (review != null)
                {
                    review.SendReminderEmail();
                    return(RedirectToAction("OutstandingReviews", new { sent = true }));
                }
            }

            return(RedirectToAction("OutstandingReviews", new { sent = false }));
        }
Example #3
0
        public ActionResult ReactivateReviewer(int?id)
        {
            int mid = 0;

            if (id.HasValue)
            {
                var review = ReviewObject.GetReview(id.Value);
                if (review != null)
                {
                    mid = review.MainId;
                    if (MainObject.CheckUserHasWriteAccess(mid))
                    {
                        review.ReActivate();
                    }
                }
            }

            return(GetReviewersList(mid));
        }