public SmartContextFacade(Controller ctrl,Func<dynamic> modelIdentifier,Type validationFailedPolicy,IValidationFailedPolicyFactory factory) { ctrl.MustNotBeNull(); modelIdentifier.MustNotBeNull(); validationFailedPolicy.MustNotBeNull(); factory.MustNotBeNull(); _ctrl = ctrl; _modelIdentifier = modelIdentifier; _validationFailedPolicy = validationFailedPolicy; IsPost = ctrl.HttpContext.Request.IsPost(); _factory = factory; }
public SmartContextFacade(Controller ctrl, Func <dynamic> modelIdentifier, Type validationFailedPolicy, IValidationFailedPolicyFactory factory) { ctrl.MustNotBeNull(); modelIdentifier.MustNotBeNull(); validationFailedPolicy.MustNotBeNull(); factory.MustNotBeNull(); _ctrl = ctrl; _modelIdentifier = modelIdentifier; _validationFailedPolicy = validationFailedPolicy; IsPost = ctrl.HttpContext.Request.IsPost(); _factory = factory; }