public ActionResult Validation(int index)
{
TaskManager = (TaskManager)Session["TaskManager"];
//set current stepinfo based on index
if (TaskManager != null)
{
TaskManager.SetCurrent(index);
// remove if existing
TaskManager.RemoveExecutedStep(TaskManager.Current());
// set valid to false if exist
if (TaskManager.Bus.ContainsKey(TaskManager.VALID))
{
TaskManager.Bus.Remove(TaskManager.VALID);
}
}
ValidationModel model = new ValidationModel();
model.StepInfo = TaskManager.Current();
return PartialView(model);
}