예제 #1
0
        /// <summary>
        /// Gets the type of the dynamic content that is inferred for the given controller.
        /// </summary>
        /// <param name="controller">The controller.</param>
        /// <param name="controllerName">Name of the controller.</param>
        /// <returns>
        /// The dynamic module type.
        /// </returns>
        public static DynamicModuleType GetDynamicContentType(this ControllerBase controller, string controllerName)
        {
            if (controller == null)
            {
                throw new ArgumentNullException("controller");
            }

            if (controllerName == null)
            {
                throw new ArgumentNullException("controllerName");
            }

            return(ControllerExtensions.GetDynamicContentType(controllerName));
        }
 /// <summary>
 /// Gets the type of the dynamic content that is inferred for the given controller name.
 /// </summary>
 /// <param name="controllerName">Name of the controller.</param>
 /// <returns>
 /// The dynamic module type.
 /// </returns>
 public static DynamicModuleType GetDynamicContentType(string controllerName)
 {
     return(ControllerExtensions.GetDynamicContentType(controllerName, null));
 }