ABsoluteMaybe.SampleWebsite.MVC2.Areas.ABsoluteMaybeDashboard.Controllers.DashboardController.EndExperiment C# (CSharp) Method

EndExperiment() private method

private EndExperiment ( string experiment, string option ) : System.Web.Mvc.RedirectToRouteResult
experiment string
option string
return System.Web.Mvc.RedirectToRouteResult
        public RedirectToRouteResult EndExperiment(string experiment, string option)
        {
            _experimentCommands.EndExperiment(experiment, option);
            TempData["Flash"] = "Experiment marked as ended.  All users will now see the chosen option.";
            return RedirectToAction("Index");
        }