NuSurvey.Web.Controllers.SurveyController.PendingDetails C# (CSharp) Method

PendingDetails() private method

private PendingDetails ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult PendingDetails(int id)
        {
            var survey = _surveyRepository.GetNullableById(id);

            if (survey == null)
            {
                return this.RedirectToAction(a => a.Index());
                //return RedirectToAction("Index");
            }

            var viewModel = SurveyPendingResponseDetailViewModel.Create(Repository, survey);

            return View(viewModel);
        }