Click or drag to resize

ControllerStandardDataItemClass Class

Standard controller for use SOWI Web
Inheritance Hierarchy
SystemObject
  ControllerBase
    Controller
      SOWIWeb.HelperControllerStandardDataItemClass
        More...

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public abstract class ControllerStandard<DataItemClass> : Controller, 
	IControllerStandard

Type Parameters

DataItemClass
Data item class e.g. SOWIData.App.Ticket

The ControllerStandardDataItemClass type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyActionInvoker
Gets the action invoker for the controller.
(Inherited from Controller.)
Public propertyActionName
Get and set Action name (controller context)
Protected propertyCode exampleAppModule
Requirement for data handling
Public propertyAsyncManager
Provides asynchronous operations.
(Inherited from Controller.)
Protected propertyBinders
Gets or sets the binder.
(Inherited from Controller.)
Protected propertyCanCreate
Requirement: View Create
Protected propertyCanDelete
Requirement: View Delete
Protected propertyCanDetails
Requirement: View Details
Protected propertyCanDownload
View Details: button Download (database field value save to file as content)
Protected propertyCanEdit
Requirement: View Edit
Protected propertyCanExport
View Index: button Export (data model save to file)
Protected propertyCanImport
View Index: button Import (data from file to database)
Protected propertyCanIndex
Requirement: View Index
Protected propertyCanUpload
View Create and Edit: button Upload (file content save to database field value)
Public propertyControllerContext
Gets or sets the controller context.
(Inherited from ControllerBase.)
Public propertyControllerName
From controller context
Public propertyDictionaryUI
Initialize with SOWIWeb.Helper.Session.DictionaryUI;
Protected propertyDisableAsyncSupport
Disable asynchronous support to provide backward compatibility.
(Inherited from Controller.)
Protected propertyGetFileName
Gives file name (full path) from object HTTPPostedFileBase
Protected propertyGetFileToByte
Gives a byte array from file (Request Files) from object HTTPPostedFileBase
Protected propertyGetFileType
Gives MIME content type from object HTTPPostedFileBase
Protected propertyCode exampleGetNewDataItem
Public propertyHttpContext
Gets HTTP-specific information about an individual HTTP request.
(Inherited from Controller.)
Public propertyID
Get route data parameter id. If object no exist then gives 0 return
Protected propertyIndexItemClickToDetails
Option: view Index Click event on data item then calls view Details. Requirement: View Index. Default value true.
Protected propertyIndexItemDeleteViaDialog
Option: view Index Click Delete event on data item is deleting via dialog. Requirement: View Index. Default value true.
Public propertyModelState
Gets the model state dictionary object that contains the state of the model and of model-binding validation.
(Inherited from Controller.)
Public propertyParameter
Get route data parameter from Controller Context object. If no value or object no exists then gives "" return.
Public propertyProfile
Gets the HTTP context profile.
(Inherited from Controller.)
Public propertyRequest
Gets the HttpRequestBase object for the current HTTP request.
(Inherited from Controller.)
Public propertyResponse
Gets the HttpResponseBase object for the current HTTP response.
(Inherited from Controller.)
Public propertyRouteData
Gets the route data for the current request.
(Inherited from Controller.)
Public propertyServer
Gets the HttpServerUtilityBase object that provides methods that are used during Web request processing.
(Inherited from Controller.)
Public propertySession
Gets the HttpSessionStateBase object for the current HTTP request.
(Inherited from Controller.)
Public propertyTempData
Gets or sets the dictionary for temporary data.
(Inherited from ControllerBase.)
Public propertyTempDataProvider
Gets the temporary-data provider object that is used to store data for the next request.
(Inherited from Controller.)
Public propertyUrl
Gets the URL helper object that is used to generate URLs by using routing.
(Inherited from Controller.)
Public propertyUser
Gets the user security information for the current HTTP request.
(Inherited from Controller.)
Public propertyValidateRequest
Gets or sets a value that indicates whether request validation is enabled for this request.
(Inherited from ControllerBase.)
Public propertyValueProvider
Gets or sets the value provider for the controller.
(Inherited from ControllerBase.)
Public propertyViewBag
Gets the dynamic view data dictionary.
(Inherited from ControllerBase.)
Public propertyViewData
Gets or sets the dictionary for view data.
(Inherited from ControllerBase.)
Public propertyViewEngineCollection
Gets the view engine collection.
(Inherited from Controller.)
Top
Methods
  NameDescription
Protected methodBeginExecute
Begins execution of the specified request context
(Inherited from Controller.)
Protected methodBeginExecuteCore
Begins to invoke the action in the current controller context.
(Inherited from Controller.)
Protected methodContent(String)
Creates a content result object by using a string.
(Inherited from Controller.)
Protected methodContent(String, String)
Creates a content result object by using a string and the content type.
(Inherited from Controller.)
Protected methodContent(String, String, Encoding)
Creates a content result object by using a string, the content type, and content encoding.
(Inherited from Controller.)
Public methodCreate
Standard Create (Get). Check CanCreate and Permission by Create. Called CreateOnActionResultGet when entitled
Public methodCreate(String, DataItemClass)
Standard Create (Post). Check CanCreate. Next step by push Button (switch submit): save and cancel. If no case is true (switch default) then called CreateOnActionResultPostCase with parameter submit.
Protected methodCreateActionInvoker
Creates an action invoker.
(Inherited from Controller.)
Protected methodCreateGetToolbar
Standard toolbar for Create with button: save (default), cancel
Protected methodCode exampleCreateOnActionResultGet
This called from method Create.

This method reset object UploadFile.

And set object ViewBag with method CreateSetViewBag.

and present view Create with a new data item of method GetNewDataItem.

Protected methodCreateOnActionResultPostCase
Not implemented is for spezification Post.
Protected methodCreateOnActionResultPostHome
Standard Create Post Home
Protected methodCreateOnActionResultPostSave
Standard save data item from Create. Check Permission by Create. Validating data if true then insert data item if false then set ModelState and give View back.

If uploaded file is valid then does call method Upload(DataItemClass, FileContent)

Supported event CreateAppActionAfterInsert

Protected methodCreateOnActionResultPostUpload
Read file upload parameters and save to SOWIWeb.Helper.Session.UploadFile
Protected methodCode exampleCreateSetViewBag
Puts ViewBag values. If value null then put following values:
NameDescription
ViewBag.DataGridViewReads from AppModule object
ViewBag.ToolbarReads from method CreateGetToolbar
ViewBag.HasListHeaderPuts default value off (false)
ViewBag.ContentNamePuts default value CreateContent
More values puts by method FormSetViewBag and method SetViewBagList
Protected methodCreateTempDataProvider
Creates a temporary data provider.
(Inherited from Controller.)
Public methodDelete(Int32)
Standard Delete (Get). Check CanDelete and Permission by Delete and DeleteOwner. Called DeleteOnActionResultGet when entitled
Public methodDelete(String, Int32)
Standard Delete (Post). Check CanDelete. Next step by push Button (switch submit): delete and cancel. If no case is true (switch default) then called DeleteOnActionResultPostCase with parameter submit.
Protected methodDeleteGetToolbar
Standard toolbar for Edit with button: delete (default), cancel
Protected methodDeleteOnActionResultGet
Called DeleteSetViewBag and gives a View object with data item by ID
Protected methodDeleteOnActionResultPostCase
Not implemented is for spezification Post.
Protected methodDeleteOnActionResultPostDelete
Standard delete data item. Check Permission by Delete and DeleteOwner. Validating data if true then delete data item if false then set ModelState and give View back.
Protected methodDeleteOnActionResultPostHome
Standard Delete Post Home
Protected methodCode exampleDeleteSetViewBag
Puts ViewBag values. If value null then put following values:
NameDescription
ViewBag.DataGridViewReads from AppModule object
ViewBag.ToolbarReads from method DeleteGetToolbar
ViewBag.HasListHeaderPuts default value off (false)
ViewBag.ContentNamePuts default value DeleteContent
More values puts by method FormSetViewBag
Public methodDetails(Int32)
Standard Details (Get). Check CanDetails and Permission by Read and ReadOwner. Called DetailsOnActionResultGet when entitled
Public methodDetails(String, Int32)
Standard Details (Post). Check CanDetails. Next step by push Button (switch submit): back, edit and delete. If no case is true (switch default) then called DetailsOnActionResultPostCase with parameter submit.
Protected methodDetailsGetToolbar
Standard toolbar for Details with button: back (default), edit (disabled at not CanEdit), delete (disabled at not CanDelete)
Protected methodDetailsOnActionResultGet
Protected methodDetailsOnActionResultPostCase
Not implemented is for spezification Post.
Protected methodDetailsOnActionResultPostHome
Standard Details Post Home
Protected methodCode exampleDetailsSetViewBag
Puts ViewBag values. If value null then put following values:
NameDescription
ViewBag.DataGridViewReads from AppModule object
ViewBag.ToolbarReads from method DetailsGetToolbar
ViewBag.HasListHeaderPuts default value off (false)
ViewBag.ContentNamePuts default value DetailsContent
More values puts by method FormSetViewBag
Public methodDispose
Releases all resources that are used by the current instance of the Controller class.
(Inherited from Controller.)
Protected methodDispose(Boolean)
Releases unmanaged resources and optionally releases managed resources.
(Inherited from Controller.)
Public methodEdit(Int32)
Standard Edit (Get). Check CanEdit and Permission by Update and UpdateOwner. Called EditOnActionResultGet when entitled
Public methodEdit(String, DataItemClass)
Standard Edit (Post). Check CanEdit. Next step by push Button (switch submit): save and cancel. If no case is true (switch default) then called EditOnActionResultPostCase with parameter submit.
Protected methodEditGetToolbar
Standard toolbar for Edit with button: save (default), cancel
Protected methodEditOnActionResultGet
Called EditSetViewBag and gives a View object with data item by ID.

This method reset object UploadFile.

Protected methodEditOnActionResultPostCase
Not implemented is for spezification Post.
Protected methodEditOnActionResultPostHome
Standard Edit Post Home
Protected methodEditOnActionResultPostSave
Standard save data item from Edit. Check Permission by Update and UpdateOwner. Validating data if true then update data item if false then set ModelState and give View back.
Protected methodEditOnActionResultPostUpload
Read file upload parameters and save to SOWIWeb.Helper.Session.UploadFile
Protected methodCode exampleEditSetViewBag
Puts ViewBag values. If value null then put following values:
NameDescription
ViewBag.DataGridViewReads from AppModule object
ViewBag.ToolbarReads from method EditGetToolbar
ViewBag.HasListHeaderPuts default value off (false)
ViewBag.ContentNamePuts default value EditContent
More values puts by method FormSetViewBag and method SetViewBagList
Protected methodEndExecute
Ends the invocation of the action in the current controller context.
(Inherited from Controller.)
Protected methodEndExecuteCore
Ends the execute core.
(Inherited from Controller.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodExecute
Executes the specified request context.
(Inherited from ControllerBase.)
Protected methodExecuteCore
Invokes the action in the current controller context.
(Inherited from Controller.)
Protected methodFile(Byte, String)
Creates a FileContentResult object by using the file contents and file type.
(Inherited from Controller.)
Protected methodFile(Stream, String)
Creates a FileStreamResult object by using the Stream object and content type.
(Inherited from Controller.)
Protected methodFile(String, String)
Creates a FilePathResult object by using the file name and the content type.
(Inherited from Controller.)
Protected methodFile(Byte, String, String)
Creates a FileContentResult object by using the file contents, content type, and the destination file name.
(Inherited from Controller.)
Protected methodFile(Stream, String, String)
Creates a FileStreamResult object using the Stream object, the content type, and the target file name.
(Inherited from Controller.)
Protected methodFile(String, String, String)
Creates a FilePathResult object by using the file name, the content type, and the file download name.
(Inherited from Controller.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFormSetViewBag
Set Form ViewBag values
NameDescription
ViewBag.DictionaryUIIf value null then puts UI dictionary from this web controller
ViewBag.ControllerNamePuts controller name
ViewBag.ActionNamePuts action name
ViewBag.TitleIf value null then puts title from UI dictionary controller name and action name
ViewBag.Message If value null then puts message value from Session object

Check upload file. If upload file valid then has additional message about this.

ViewBag.ReturnUrlIf value null then puts this URL
Protected methodGetFile
Gives the first file object (with exists a filename) of HTTP posted files back
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleUnknownAction
Called when a request matches this controller, but no method with the specified action name is found in the controller.
(Inherited from Controller.)
Protected methodHttpNotFound
Returns an instance of the HttpNotFoundResult class.
(Inherited from Controller.)
Protected methodHttpNotFound(String)
Returns an instance of the HttpNotFoundResult class.
(Inherited from Controller.)
Public methodIndex
Standard Index (Get). Check CanIndex and Permission by Read and ReadOwner. Called IndexOnActionResultGet when entitled
Public methodIndex(String, ListViewConfig)
Standard Index (Post). Check CanIndex. Next step by push Button (switch submit): create, refresh and EditDataGridView. If no case is true (switch default) then called IndexOnActionResultPostCase with parameter submit.
Protected methodCode exampleIndexGetToolbar
Standard toolbar for Index with button: create (default and disabled not CanCreate), refresh, ListHeader (toogle for LiestHeader) and EditDataGridView and Import
Protected methodCode exampleIndexGetToolbarItem
Standard toolbar for data item (Edit, Details, Delete). Button Delete controlled by option IndexItemDeleteViaDialog (view or dialog)
Public methodCode exampleIndexGetView(ListViewConfig, DictionaryString, String)
Gives a data list. Called method GetView from his App
Public methodCode exampleIndexGetView(ListViewConfig, String, DictionaryString, String)
Gives a data list. Called method GetView from his App
Protected methodIndexOnActionResultGet
Calls the method IndexSetViewBag. Fills data list by method IndexGetView.
Protected methodCode exampleIndexOnActionResultPostCase
Not implemented is for spezification Post.
Protected methodCode exampleIndexOnActionResultPostCreate
Standard Index Post Create
Protected methodCode exampleIndexOnActionResultPostDelete
Data item is deleting via option IndexItemDeleteViaDialog. Trigger event IndexAppActionDelete details see topic Remarks.
Protected methodIndexOnActionResultPostHome
Standard Index Post Home
Protected methodIndexOnActionResultPostImport
File import implement in method Import in App module. See Import(Stream, String, String)
Protected methodIndexOnActionResultPostRefresh
This method called from Standard Index (Post Refresh). Gives a View object with data list configuration by ListViewConfig. Check Permission by Read and ReadOwner. Called IndexSetViewBag.
Protected methodCode exampleIndexSetViewBag
Call method FormSetViewBag and puts Session and ViewBag values
NameDescription
Session.ReturnUrlPut value Session Return URL with request URL value (this controller URL, see PathAndQuery and )

This value put always. Want to overwrite then set the value after the method is called.

ViewBag.DataGridViewIf value null then put value from AppModule property DataGridView
ViewBag.ToolbarIf value null then put value from AppModule Index Get Toolbar (see IndexGetToolbar)
ViewBag.ToolbarItemIf value null then put value from AppModule Index Get Toolbar Item (see IndexGetToolbarItem)
ViewBag.HasListHeaderIf value null then put value true
ViewBag.ContentNameIf value null then put value IndexContentDataTablesPartial (with DataTables plug in)
ViewBag.IndexItemClickToDetailsDetails see option IndexItemClickToDetails
ViewBag.IndexItemDeleteViaDialogDetails see option IndexItemDeleteViaDialog
Private methodInitialize
Protected methodInitialize(RequestContext)
Initializes data that might not be available when the constructor is called.
(Inherited from Controller.)
Protected methodJavaScript
Creates a JavaScriptResult object.
(Inherited from Controller.)
Protected methodJson(Object)
Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON).
(Inherited from Controller.)
Protected methodJson(Object, String)
Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format.
(Inherited from Controller.)
Protected methodJson(Object, JsonRequestBehavior)
Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format using the specified JSON request behavior.
(Inherited from Controller.)
Protected methodJson(Object, String, Encoding)
Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format.
(Inherited from Controller.)
Protected methodJson(Object, String, JsonRequestBehavior)
Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format using the specified content type and JSON request behavior.
(Inherited from Controller.)
Protected methodJson(Object, String, Encoding, JsonRequestBehavior)
Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format using the content type, content encoding, and the JSON request behavior.
(Inherited from Controller.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnActionExecuted
Called after the action method is invoked.
(Inherited from Controller.)
Protected methodOnActionExecuting
Called before the action method is invoked.
(Inherited from Controller.)
Protected methodOnAuthorization
Called when authorization occurs.
(Inherited from Controller.)
Protected methodOnException
Called when an unhandled exception occurs in the action.
(Inherited from Controller.)
Protected methodOnResultExecuted
Called after the action result that is returned by an action method is executed.
(Inherited from Controller.)
Protected methodOnResultExecuting
Called before the action result that is returned by an action method is executed.
(Inherited from Controller.)
Protected methodPartialView
Creates a PartialViewResult object that renders a partial view.
(Inherited from Controller.)
Protected methodPartialView(Object)
Creates a PartialViewResult object that renders a partial view, by using the specified model.
(Inherited from Controller.)
Protected methodPartialView(String)
Creates a PartialViewResult object that renders a partial view, by using the specified view name.
(Inherited from Controller.)
Protected methodPartialView(String, Object)
Creates a PartialViewResult object that renders a partial view, by using the specified view name and model.
(Inherited from Controller.)
Protected methodCode examplePermissionCheck
Check Permission with array of CRUD (enumeration)
Protected methodPermissionDenied
Go to LogIn with Message (No authorization or not logged in.) and set Session ReturnUrl
Protected methodRedirect
Creates a RedirectResult object that redirects to the specified URL.
(Inherited from Controller.)
Protected methodRedirectPermanent
Returns an instance of the RedirectResult class with the Permanent property set to true.
(Inherited from Controller.)
Protected methodRedirectToAction(String)
Redirects to the specified action using the action name.
(Inherited from Controller.)
Protected methodRedirectToAction(String, Object)
Redirects to the specified action using the action name and route values.
(Inherited from Controller.)
Protected methodRedirectToAction(String, RouteValueDictionary)
Redirects to the specified action using the action name and route dictionary.
(Inherited from Controller.)
Protected methodRedirectToAction(String, String)
Redirects to the specified action using the action name and controller name.
(Inherited from Controller.)
Protected methodRedirectToAction(String, String, Object)
Redirects to the specified action using the action name, controller name, and route values.
(Inherited from Controller.)
Protected methodRedirectToAction(String, String, RouteValueDictionary)
Redirects to the specified action using the action name, controller name, and route dictionary.
(Inherited from Controller.)
Protected methodRedirectToActionPermanent(String)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name.
(Inherited from Controller.)
Protected methodRedirectToActionPermanent(String, Object)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and route values.
(Inherited from Controller.)
Protected methodRedirectToActionPermanent(String, RouteValueDictionary)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and route values.
(Inherited from Controller.)
Protected methodRedirectToActionPermanent(String, String)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and controller name.
(Inherited from Controller.)
Protected methodRedirectToActionPermanent(String, String, Object)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, controller name, and route values.
(Inherited from Controller.)
Protected methodRedirectToActionPermanent(String, String, RouteValueDictionary)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, controller name, and route values.
(Inherited from Controller.)
Protected methodRedirectToLocal
Redirection to local url
Protected methodRedirectToRoute(Object)
Redirects to the specified route using the specified route values.
(Inherited from Controller.)
Protected methodRedirectToRoute(RouteValueDictionary)
Redirects to the specified route using the route dictionary.
(Inherited from Controller.)
Protected methodRedirectToRoute(String)
Redirects to the specified route using the route name.
(Inherited from Controller.)
Protected methodRedirectToRoute(String, Object)
Redirects to the specified route using the route name and route values.
(Inherited from Controller.)
Protected methodRedirectToRoute(String, RouteValueDictionary)
Redirects to the specified route using the route name and route dictionary.
(Inherited from Controller.)
Protected methodRedirectToRoutePermanent(Object)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.
(Inherited from Controller.)
Protected methodRedirectToRoutePermanent(RouteValueDictionary)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.
(Inherited from Controller.)
Protected methodRedirectToRoutePermanent(String)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.
(Inherited from Controller.)
Protected methodRedirectToRoutePermanent(String, Object)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.
(Inherited from Controller.)
Protected methodRedirectToRoutePermanent(String, RouteValueDictionary)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.
(Inherited from Controller.)
Protected methodCode exampleSetViewBagList
Set view bag list is empty
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTryUpdateModel``1(UMP)
Updates the specified model instance using values from the controller's current value provider.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String)
Updates the specified model instance using values from the controller's current value provider and a prefix.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String)
Updates the specified model instance using values from the controller's current value provider and included properties.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, IValueProvider)
Updates the specified model instance using values from the value provider.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String, String)
Updates the specified model instance using values from the controller's current value provider, a prefix, and included properties.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String, IValueProvider)
Updates the specified model instance using values from the value provider and a prefix.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String, IValueProvider)
Updates the specified model instance using values from the value provider and a list of properties to include.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String, String, String)
Updates the specified model instance using values from the controller's current value provider, a prefix, a list of properties to exclude, and a list of properties to include.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String, String, IValueProvider)
Updates the specified model instance using values from the value provider, a prefix, and included properties.
(Inherited from Controller.)
Protected methodTryUpdateModel``1(UMP, String, String, String, IValueProvider)
Updates the specified model instance using values from the value provider, a prefix, a list of properties to exclude , and a list of properties to include.
(Inherited from Controller.)
Protected methodTryValidateModel(Object)
Validates the specified model instance.
(Inherited from Controller.)
Protected methodTryValidateModel(Object, String)
Validates the specified model instance using an HTML prefix.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP)
Updates the specified model instance using values from the controller's current value provider.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String)
Updates the specified model instance using values from the controller's current value provider and a prefix.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String)
Updates the specified model instance using values from the controller object's current value provider.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, IValueProvider)
Updates the specified model instance using values from the value provider.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String, String)
Updates the specified model instance using values from the controller's current value provider, a prefix, and included properties.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String, IValueProvider)
Updates the specified model instance using values from the value provider and a prefix.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String, IValueProvider)
Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String, String, String)
Updates the specified model instance using values from the controller's current value provider, a prefix, a list of properties to exclude, and a list of properties to include.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String, String, IValueProvider)
Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.
(Inherited from Controller.)
Protected methodUpdateModel``1(UMP, String, String, String, IValueProvider)
Updates the specified model instance using values from the value provider, a prefix, a list of properties to exclude, and a list of properties to include.
(Inherited from Controller.)
Protected methodValidateModel(Object)
Validates the specified model instance.
(Inherited from Controller.)
Protected methodValidateModel(Object, String)
Validates the specified model instance using an HTML prefix.
(Inherited from Controller.)
Protected methodView
Creates a ViewResult object that renders a view to the response.
(Inherited from Controller.)
Protected methodView(Object)
Creates a ViewResult object by using the model that renders a view to the response.
(Inherited from Controller.)
Protected methodView(String)
Creates a ViewResult object by using the view name that renders a view.
(Inherited from Controller.)
Protected methodView(IView)
Creates a ViewResult object that renders the specified IView object.
(Inherited from Controller.)
Protected methodView(String, String)
Creates a ViewResult object using the view name and master-page name that renders a view to the response.
(Inherited from Controller.)
Protected methodView(String, Object)
Creates a ViewResult object by using the view name and model that renders a view to the response.
(Inherited from Controller.)
Protected methodView(IView, Object)
Creates a ViewResult object that renders the specified IView object.
(Inherited from Controller.)
Protected methodView(String, String, Object)
Creates a ViewResult object using the view name, master-page name, and model that renders a view.
(Inherited from Controller.)
Top
Fields
  NameDescription
Public fieldCreateAppActionAfterInsert
Triggered by view Create submit Save
Public fieldIndexAppActionDelete
Triggered by view Index submit Delete
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodSystem#Web#Mvc#Async#IAsyncController#BeginExecute (Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#Async#IAsyncController#EndExecute
Ends the execute task.
(Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IController#Execute
Executes the specified request context.
(Inherited from ControllerBase.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IActionFilter#OnActionExecuted
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the OnActionExecuted(ActionExecutedContext) method.
(Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IActionFilter#OnActionExecuting
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the OnActionExecuting(ActionExecutingContext) method.
(Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IAuthorizationFilter#OnAuthorization
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the OnAuthorization(AuthorizationContext) method.
(Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IExceptionFilter#OnException
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the OnException(ExceptionContext) method.
(Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IResultFilter#OnResultExecuted
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the OnResultExecuted(ResultExecutedContext) method.
(Inherited from Controller.)
Explicit interface implementationPrivate methodSystem#Web#Mvc#IResultFilter#OnResultExecuting
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the OnResultExecuting(ResultExecutingContext) method.
(Inherited from Controller.)
Top
Remarks
Note Note
Note: use data type boolean? set data type int Why use int and not boolean in variables? Boolean has converted problem in ViewBag to type of HTML input hidden object (0 = false; 1 = true).
Examples
This web controller example used the standard controller class (ControllerStandard) or his interface IAppControllerDataItemClass. For extension method .ToGUID() set using SOWIData.Helper Convert. For user session handling (IsAuthenticated) Session
public class ActivityController : SOWIWeb.Helper.ControllerStandard<SOWIData.App.Activity>
{
    public ActivityController() : base(true) { }

    protected override SOWIApp.Foundation.IAppController<SOWIData.App.Activity> AppModule
    {
        get
        {
            if (SOWIWeb.Helper.Session.IsAuthenticated)
            {
                return (SOWIApp.Foundation.IAppController<SOWIData.App.Activity>)
                       new SOWIApp.Basic.Activity(SOWIWeb.Helper.Session.Token.ToGUID());
            }
            return null;
        }
    }

    protected override SOWIData.App.Activity GetNewDataItem { get { return new SOWIData.App.Activity(); } }

}
More example see AppModule and GetNewDataItem
See Also
Inheritance Hierarchy
SystemObject
  ControllerBase
    Controller
      SOWIWeb.HelperControllerStandardDataItemClass
        SOWIWeb.Administrator.ControllersAddressController
        SOWIWeb.Administrator.ControllersClientController
        SOWIWeb.Administrator.ControllersClientModuleController
        SOWIWeb.Administrator.ControllersClientOptionController
        SOWIWeb.Administrator.ControllersDataGridController
        SOWIWeb.Administrator.ControllersPermissionController
        SOWIWeb.Administrator.ControllersRoleController
        SOWIWeb.Administrator.ControllersRoleGroupController
        SOWIWeb.Administrator.ControllersUserController
        SOWIWeb.Administrator.ControllersUserRoleController