Class responsible on loading records for parameters marked with the ARFetchAttribute.
Exemplo n.º 1
0
        public virtual object Bind(IEngineContext context, IController controller, IControllerContext controllerContext, ParameterInfo parameterInfo)
        {
            EnsureBinderExists();

            var fetcher = new ARFetcher(binder.Converter);

            return(fetcher.FetchActiveRecord(parameterInfo, this, context.Request, controllerContext.CustomActionParameters));
        }
Exemplo n.º 2
0
		public virtual object Bind(IEngineContext context, IController controller, IControllerContext controllerContext, ParameterInfo parameterInfo)
		{
			EnsureBinderExists();

			ARFetcher fetcher = new ARFetcher(binder.Converter);

			return fetcher.FetchActiveRecord(parameterInfo, this, context.Request, controllerContext.CustomActionParameters);
		}
Exemplo n.º 3
0
		public virtual object Bind(SmartDispatcherController controller, ParameterInfo parameterInfo)
		{
			ARFetcher fetcher = new ARFetcher(controller.Binder.Converter);
			
			return fetcher.FetchActiveRecord(parameterInfo, this, controller.Request);
		}