/// <summary> /// Resolves the typed handler for the population of a view model with content input queried from the Umbraco context, /// using the Ninject IoC container /// </summary> /// <typeparam name="TTo">Type of model to populate</typeparam> public IHandler <TTo> Resolve <TTo>() { return(NinjectWebCommon.GetBinding <IHandler <TTo> >()); }
/// <summary> /// Resolves the typed handler for the population of a view model from the provided source content and additional data /// (such as that provided from a form post or querystring input), using the Ninject IoC container /// </summary> /// <typeparam name="TSource">Content source to populate from</typeparam> /// <typeparam name="TTo">Type of model to populate</typeparam> /// <typeparam name="TData">Type of additional data</typeparam> public IHandler <TSource, TTo, TData> Resolve <TSource, TTo, TData>() { return(NinjectWebCommon.GetBinding <IHandler <TSource, TTo, TData> >()); }
protected BasePageController() { ViewModelBuilder = NinjectWebCommon.GetBinding <IViewModelBuilder>(); }