public override void ExecuteResult(ControllerContext context) { var controller = (Controller)context.Controller; Data = new ModalDialogFormJsonData(controller.ModelState.IsValid, RedirectUrl, OnSuccessJavascriptFunctionToRun); base.ExecuteResult(context); }
public ModalDialogFormJsonResult() { // this is mainly to satisfy unit tests because ExecuteResult does not get run Data = new ModalDialogFormJsonData(true, RedirectUrl, OnSuccessJavascriptFunctionToRun); }