Parses ActionStatus cookie data and stores it in the ViewData to be displayed as a message to the requesting client.
Automatically configures the culture and language information based on RouteData, resulting in a localized version of a web page being served to the requesting client.
Represents a base controller from which other controllers can inherit.
// Obtain a reference to the CookieHelpervar helper = this.CookieHelper;
// Adds an error to the ViewDataIResult result = Result.ErrorResult( "Ooops! An error occurred." );
// Configures a result to the ViewData, or to a cookie depending on the arguments providedIResult result = Result.ErrorResult( "Ooops! An error occurred." );
// Is the client redirecting? We'll store the result in a cookie.
// If configured, the ActionStatusCookieInvalidatorActionFilter will
// move the result from the cookie to the ViewData after redirecting
// the client.this.SetActionStatusMessage( result, true );
// Need to display the same view? We'll store it directly in the ViewDatathis.SetActionStatusMessage( result, false );
Can be overridden to initialize ViewData as needed.
Sets the ViewData values for property commonly associated with HTML metadata.
Abstracts away the create, read, update, delete related functionality associated with creating TViewModel objects.
Displays a list of all TViewModel objects, which may be filtered by a parent identity if provided.
Displays a user interface to create a new TViewModel object.
Submits the TViewModel to the TWebAPIController to be created.
Displays a user interface to edit an existing TViewModel.
Submits the TViewModel to the TWebAPIController to be saved.
Displays a user interface which allows a user to delete a TViewModel.
Submits the TViewModel to the TWebAPIController to be deleted.
Extension methods for the System.Web.Mvc.HtmlHelper type.
<!-- Writes a "checked" attribute if the booleanExpression evaluates to true. --><input type="checkbox" @Html.CheckedAttributeFor( x => x.IsActive ) />
// Utility method to quickly retrieve the Area, Controller, or Action name from a View.String actionName = this.Html.GetRouteData( RouteParts.Action ); }
<!-- Writes a "selected" attribute if the booleanExpression evaluates to true. --><input type="checkbox" @Html.SelectedAttributeFor( x => x.IsActive ) />
Extends the System.Web.Mvc.DefaultModelBinder to bind empty Strings rather than null values, as well as supporting Enums decorated with [FlagsAttribute].
Requires the selection of at least 1 of the items contained in the IEnumerable property to which this attribute is decorated.