ControllerStandardDataItemClass Class |
Namespace: SOWIWeb.Helper
The ControllerStandardDataItemClass type exposes the following members.
Name | Description | |
---|---|---|
ControllerStandardDataItemClass |
Set standard values CanIndex, CanDetails, CanCreate, CanEdit and CanDelete on true and CanImport on false.
| |
ControllerStandardDataItemClass(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) |
Set own values and rest is standard values
|
Name | Description | |
---|---|---|
ActionInvoker | Gets the action invoker for the controller. (Inherited from Controller.) | |
ActionName |
Get and set Action name (controller context)
| |
AppModule |
Requirement for data handling
| |
AsyncManager | Provides asynchronous operations. (Inherited from Controller.) | |
Binders | Gets or sets the binder. (Inherited from Controller.) | |
CanCreate |
Requirement: View Create
| |
CanDelete |
Requirement: View Delete
| |
CanDetails |
Requirement: View Details
| |
CanDownload |
View Details: button Download (database field value save to file as content)
| |
CanEdit |
Requirement: View Edit
| |
CanExport |
View Index: button Export (data model save to file)
| |
CanImport |
View Index: button Import (data from file to database)
| |
CanIndex |
Requirement: View Index
| |
CanUpload |
View Create and Edit: button Upload (file content save to database field value)
| |
ControllerContext | Gets or sets the controller context. (Inherited from ControllerBase.) | |
ControllerName |
From controller context
| |
DictionaryUI |
Initialize with SOWIWeb.Helper.Session.DictionaryUI;
| |
DisableAsyncSupport | Disable asynchronous support to provide backward compatibility. (Inherited from Controller.) | |
GetFileName |
Gives file name (full path) from object HTTPPostedFileBase
| |
GetFileToByte |
Gives a byte array from file (Request Files) from object HTTPPostedFileBase
| |
GetFileType |
Gives MIME content type from object HTTPPostedFileBase
| |
GetNewDataItem |
Requirement for data handling. Use e.g. CreateOnActionResultGet.
| |
HttpContext | Gets HTTP-specific information about an individual HTTP request. (Inherited from Controller.) | |
ID |
Get route data parameter id.
If object no exist then gives 0 return
| |
IndexItemClickToDetails |
Option: view Index Click event on data item then calls view Details.
Requirement: View Index. Default value true.
| |
IndexItemDeleteViaDialog |
Option: view Index Click Delete event on data item is deleting via dialog.
Requirement: View Index. Default value true.
| |
ModelState | Gets the model state dictionary object that contains the state of the model and of model-binding validation. (Inherited from Controller.) | |
Parameter |
Get route data parameter from Controller Context object.
If no value or object no exists then gives "" return.
| |
Profile | Gets the HTTP context profile. (Inherited from Controller.) | |
Request | Gets the HttpRequestBase object for the current HTTP request. (Inherited from Controller.) | |
Response | Gets the HttpResponseBase object for the current HTTP response. (Inherited from Controller.) | |
RouteData | Gets the route data for the current request. (Inherited from Controller.) | |
Server | Gets the HttpServerUtilityBase object that provides methods that are used during Web request processing. (Inherited from Controller.) | |
Session | Gets the HttpSessionStateBase object for the current HTTP request. (Inherited from Controller.) | |
TempData | Gets or sets the dictionary for temporary data. (Inherited from ControllerBase.) | |
TempDataProvider | Gets the temporary-data provider object that is used to store data for the next request. (Inherited from Controller.) | |
Url | Gets the URL helper object that is used to generate URLs by using routing. (Inherited from Controller.) | |
User | Gets the user security information for the current HTTP request. (Inherited from Controller.) | |
ValidateRequest | Gets or sets a value that indicates whether request validation is enabled for this request. (Inherited from ControllerBase.) | |
ValueProvider | Gets or sets the value provider for the controller. (Inherited from ControllerBase.) | |
ViewBag | Gets the dynamic view data dictionary. (Inherited from ControllerBase.) | |
ViewData | Gets or sets the dictionary for view data. (Inherited from ControllerBase.) | |
ViewEngineCollection | Gets the view engine collection. (Inherited from Controller.) |
Name | Description | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BeginExecute | Begins execution of the specified request context (Inherited from Controller.) | |||||||||||||||||||
BeginExecuteCore | Begins to invoke the action in the current controller context. (Inherited from Controller.) | |||||||||||||||||||
Content(String) | Creates a content result object by using a string. (Inherited from Controller.) | |||||||||||||||||||
Content(String, String) | Creates a content result object by using a string and the content type. (Inherited from Controller.) | |||||||||||||||||||
Content(String, String, Encoding) | Creates a content result object by using a string, the content type, and content encoding. (Inherited from Controller.) | |||||||||||||||||||
Create |
Standard Create (Get). Check CanCreate and Permission by Create.
Called CreateOnActionResultGet when entitled
| |||||||||||||||||||
Create(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.
| |||||||||||||||||||
CreateActionInvoker | Creates an action invoker. (Inherited from Controller.) | |||||||||||||||||||
CreateGetToolbar |
Standard toolbar for Create with button:
save (default), cancel
| |||||||||||||||||||
CreateOnActionResultGet |
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. | |||||||||||||||||||
CreateOnActionResultPostCase |
Not implemented is for spezification Post.
| |||||||||||||||||||
CreateOnActionResultPostHome |
Standard Create Post Home
| |||||||||||||||||||
CreateOnActionResultPostSave |
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 | |||||||||||||||||||
CreateOnActionResultPostUpload |
Read file upload parameters and save to SOWIWeb.Helper.Session.UploadFile | |||||||||||||||||||
CreateSetViewBag |
Puts ViewBag values. If value null then put following values:
| |||||||||||||||||||
CreateTempDataProvider | Creates a temporary data provider. (Inherited from Controller.) | |||||||||||||||||||
Delete(Int32) |
Standard Delete (Get). Check CanDelete and Permission by Delete and DeleteOwner.
Called DeleteOnActionResultGet when entitled
| |||||||||||||||||||
Delete(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.
| |||||||||||||||||||
DeleteGetToolbar |
Standard toolbar for Edit with button:
delete (default), cancel
| |||||||||||||||||||
DeleteOnActionResultGet |
Called DeleteSetViewBag and gives a View object with data item by ID
| |||||||||||||||||||
DeleteOnActionResultPostCase |
Not implemented is for spezification Post.
| |||||||||||||||||||
DeleteOnActionResultPostDelete |
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.
| |||||||||||||||||||
DeleteOnActionResultPostHome |
Standard Delete Post Home
| |||||||||||||||||||
DeleteSetViewBag |
Puts ViewBag values. If value null then put following values:
| |||||||||||||||||||
Details(Int32) |
Standard Details (Get). Check CanDetails and Permission by Read and ReadOwner.
Called DetailsOnActionResultGet when entitled
| |||||||||||||||||||
Details(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.
| |||||||||||||||||||
DetailsGetToolbar |
Standard toolbar for Details with button:
back (default), edit (disabled at not CanEdit), delete (disabled at not CanDelete)
| |||||||||||||||||||
DetailsOnActionResultGet |
Called DetailsSetViewBag and gives a View object with data item by ID
| |||||||||||||||||||
DetailsOnActionResultPostCase |
Not implemented is for spezification Post.
| |||||||||||||||||||
DetailsOnActionResultPostHome |
Standard Details Post Home
| |||||||||||||||||||
DetailsSetViewBag |
Puts ViewBag values. If value null then put following values:
| |||||||||||||||||||
Dispose | Releases all resources that are used by the current instance of the Controller class. (Inherited from Controller.) | |||||||||||||||||||
Dispose(Boolean) | Releases unmanaged resources and optionally releases managed resources. (Inherited from Controller.) | |||||||||||||||||||
Edit(Int32) |
Standard Edit (Get). Check CanEdit and Permission by Update and UpdateOwner.
Called EditOnActionResultGet when entitled
| |||||||||||||||||||
Edit(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.
| |||||||||||||||||||
EditGetToolbar |
Standard toolbar for Edit with button:
save (default), cancel
| |||||||||||||||||||
EditOnActionResultGet |
Called EditSetViewBag and gives a View object with data item by ID.
This method reset object UploadFile. | |||||||||||||||||||
EditOnActionResultPostCase |
Not implemented is for spezification Post.
| |||||||||||||||||||
EditOnActionResultPostHome |
Standard Edit Post Home
| |||||||||||||||||||
EditOnActionResultPostSave |
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.
| |||||||||||||||||||
EditOnActionResultPostUpload |
Read file upload parameters and save to SOWIWeb.Helper.Session.UploadFile | |||||||||||||||||||
EditSetViewBag |
Puts ViewBag values. If value null then put following values:
| |||||||||||||||||||
EndExecute | Ends the invocation of the action in the current controller context. (Inherited from Controller.) | |||||||||||||||||||
EndExecuteCore | Ends the execute core. (Inherited from Controller.) | |||||||||||||||||||
Equals | (Inherited from Object.) | |||||||||||||||||||
Execute | Executes the specified request context. (Inherited from ControllerBase.) | |||||||||||||||||||
ExecuteCore | Invokes the action in the current controller context. (Inherited from Controller.) | |||||||||||||||||||
File(Byte, String) | Creates a FileContentResult object by using the file contents and file type. (Inherited from Controller.) | |||||||||||||||||||
File(Stream, String) | Creates a FileStreamResult object by using the Stream object and content type. (Inherited from Controller.) | |||||||||||||||||||
File(String, String) | Creates a FilePathResult object by using the file name and the content type. (Inherited from Controller.) | |||||||||||||||||||
File(Byte, String, String) | Creates a FileContentResult object by using the file contents, content type, and the destination file name. (Inherited from Controller.) | |||||||||||||||||||
File(Stream, String, String) | Creates a FileStreamResult object using the Stream object, the content type, and the target file name. (Inherited from Controller.) | |||||||||||||||||||
File(String, String, String) | Creates a FilePathResult object by using the file name, the content type, and the file download name. (Inherited from Controller.) | |||||||||||||||||||
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |||||||||||||||||||
FormSetViewBag |
Set Form ViewBag values
| |||||||||||||||||||
GetFile |
Gives the first file object (with exists a filename) of HTTP posted files back
| |||||||||||||||||||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |||||||||||||||||||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |||||||||||||||||||
HandleUnknownAction | Called when a request matches this controller, but no method with the specified action name is found in the controller. (Inherited from Controller.) | |||||||||||||||||||
HttpNotFound | Returns an instance of the HttpNotFoundResult class. (Inherited from Controller.) | |||||||||||||||||||
HttpNotFound(String) | Returns an instance of the HttpNotFoundResult class. (Inherited from Controller.) | |||||||||||||||||||
Index |
Standard Index (Get). Check CanIndex and Permission by Read and ReadOwner.
Called IndexOnActionResultGet when entitled
| |||||||||||||||||||
Index(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.
| |||||||||||||||||||
IndexGetToolbar |
Standard toolbar for Index with button:
create (default and disabled not CanCreate), refresh,
ListHeader (toogle for LiestHeader) and EditDataGridView and Import
| |||||||||||||||||||
IndexGetToolbarItem |
Standard toolbar for data item (Edit, Details, Delete). Button Delete controlled by option IndexItemDeleteViaDialog (view or dialog)
| |||||||||||||||||||
IndexGetView(ListViewConfig, DictionaryString, String) |
Gives a data list.
Called method GetView from his App
| |||||||||||||||||||
IndexGetView(ListViewConfig, String, DictionaryString, String) |
Gives a data list.
Called method GetView from his App
| |||||||||||||||||||
IndexOnActionResultGet |
Calls the method IndexSetViewBag.
Fills data list by method IndexGetView.
| |||||||||||||||||||
IndexOnActionResultPostCase |
Not implemented is for spezification Post.
| |||||||||||||||||||
IndexOnActionResultPostCreate |
Standard Index Post Create
| |||||||||||||||||||
IndexOnActionResultPostDelete |
Data item is deleting via option IndexItemDeleteViaDialog. Trigger event IndexAppActionDelete details see topic Remarks.
| |||||||||||||||||||
IndexOnActionResultPostHome |
Standard Index Post Home
| |||||||||||||||||||
IndexOnActionResultPostImport |
File import implement in method Import in App module.
See Import(Stream, String, String) | |||||||||||||||||||
IndexOnActionResultPostRefresh |
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.
| |||||||||||||||||||
IndexSetViewBag |
Call method FormSetViewBag and puts Session and ViewBag values
| |||||||||||||||||||
Initialize | ||||||||||||||||||||
Initialize(RequestContext) | Initializes data that might not be available when the constructor is called. (Inherited from Controller.) | |||||||||||||||||||
JavaScript | Creates a JavaScriptResult object. (Inherited from Controller.) | |||||||||||||||||||
Json(Object) | Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON). (Inherited from Controller.) | |||||||||||||||||||
Json(Object, String) | Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format. (Inherited from Controller.) | |||||||||||||||||||
Json(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.) | |||||||||||||||||||
Json(Object, String, Encoding) | Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format. (Inherited from Controller.) | |||||||||||||||||||
Json(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.) | |||||||||||||||||||
Json(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.) | |||||||||||||||||||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |||||||||||||||||||
OnActionExecuted | Called after the action method is invoked. (Inherited from Controller.) | |||||||||||||||||||
OnActionExecuting | Called before the action method is invoked. (Inherited from Controller.) | |||||||||||||||||||
OnAuthorization | Called when authorization occurs. (Inherited from Controller.) | |||||||||||||||||||
OnException | Called when an unhandled exception occurs in the action. (Inherited from Controller.) | |||||||||||||||||||
OnResultExecuted | Called after the action result that is returned by an action method is executed. (Inherited from Controller.) | |||||||||||||||||||
OnResultExecuting | Called before the action result that is returned by an action method is executed. (Inherited from Controller.) | |||||||||||||||||||
PartialView | Creates a PartialViewResult object that renders a partial view. (Inherited from Controller.) | |||||||||||||||||||
PartialView(Object) | Creates a PartialViewResult object that renders a partial view, by using the specified model. (Inherited from Controller.) | |||||||||||||||||||
PartialView(String) | Creates a PartialViewResult object that renders a partial view, by using the specified view name. (Inherited from Controller.) | |||||||||||||||||||
PartialView(String, Object) | Creates a PartialViewResult object that renders a partial view, by using the specified view name and model. (Inherited from Controller.) | |||||||||||||||||||
PermissionCheck |
Check Permission with array of CRUD (enumeration)
| |||||||||||||||||||
PermissionDenied |
Go to LogIn with Message (No authorization or not logged in.) and set Session ReturnUrl
| |||||||||||||||||||
Redirect | Creates a RedirectResult object that redirects to the specified URL. (Inherited from Controller.) | |||||||||||||||||||
RedirectPermanent | Returns an instance of the RedirectResult class with the Permanent property set to true. (Inherited from Controller.) | |||||||||||||||||||
RedirectToAction(String) | Redirects to the specified action using the action name. (Inherited from Controller.) | |||||||||||||||||||
RedirectToAction(String, Object) | Redirects to the specified action using the action name and route values. (Inherited from Controller.) | |||||||||||||||||||
RedirectToAction(String, RouteValueDictionary) | Redirects to the specified action using the action name and route dictionary. (Inherited from Controller.) | |||||||||||||||||||
RedirectToAction(String, String) | Redirects to the specified action using the action name and controller name. (Inherited from Controller.) | |||||||||||||||||||
RedirectToAction(String, String, Object) | Redirects to the specified action using the action name, controller name, and route values. (Inherited from Controller.) | |||||||||||||||||||
RedirectToAction(String, String, RouteValueDictionary) | Redirects to the specified action using the action name, controller name, and route dictionary. (Inherited from Controller.) | |||||||||||||||||||
RedirectToActionPermanent(String) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name. (Inherited from Controller.) | |||||||||||||||||||
RedirectToActionPermanent(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.) | |||||||||||||||||||
RedirectToActionPermanent(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.) | |||||||||||||||||||
RedirectToActionPermanent(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.) | |||||||||||||||||||
RedirectToActionPermanent(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.) | |||||||||||||||||||
RedirectToActionPermanent(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.) | |||||||||||||||||||
RedirectToLocal |
Redirection to local url
| |||||||||||||||||||
RedirectToRoute(Object) | Redirects to the specified route using the specified route values. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoute(RouteValueDictionary) | Redirects to the specified route using the route dictionary. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoute(String) | Redirects to the specified route using the route name. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoute(String, Object) | Redirects to the specified route using the route name and route values. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoute(String, RouteValueDictionary) | Redirects to the specified route using the route name and route dictionary. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoutePermanent(Object) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoutePermanent(RouteValueDictionary) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoutePermanent(String) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name. (Inherited from Controller.) | |||||||||||||||||||
RedirectToRoutePermanent(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.) | |||||||||||||||||||
RedirectToRoutePermanent(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.) | |||||||||||||||||||
SetViewBagList |
Set view bag list is empty
| |||||||||||||||||||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |||||||||||||||||||
TryUpdateModel``1(UMP) | Updates the specified model instance using values from the controller's current value provider. (Inherited from Controller.) | |||||||||||||||||||
TryUpdateModel``1(UMP, String) | Updates the specified model instance using values from the controller's current value provider and a prefix. (Inherited from Controller.) | |||||||||||||||||||
TryUpdateModel``1(UMP, String) | Updates the specified model instance using values from the controller's current value provider and included properties. (Inherited from Controller.) | |||||||||||||||||||
TryUpdateModel``1(UMP, IValueProvider) | Updates the specified model instance using values from the value provider. (Inherited from Controller.) | |||||||||||||||||||
TryUpdateModel``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.) | |||||||||||||||||||
TryUpdateModel``1(UMP, String, IValueProvider) | Updates the specified model instance using values from the value provider and a prefix. (Inherited from Controller.) | |||||||||||||||||||
TryUpdateModel``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.) | |||||||||||||||||||
TryUpdateModel``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.) | |||||||||||||||||||
TryUpdateModel``1(UMP, String, String, IValueProvider) | Updates the specified model instance using values from the value provider, a prefix, and included properties. (Inherited from Controller.) | |||||||||||||||||||
TryUpdateModel``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.) | |||||||||||||||||||
TryValidateModel(Object) | Validates the specified model instance. (Inherited from Controller.) | |||||||||||||||||||
TryValidateModel(Object, String) | Validates the specified model instance using an HTML prefix. (Inherited from Controller.) | |||||||||||||||||||
UpdateModel``1(UMP) | Updates the specified model instance using values from the controller's current value provider. (Inherited from Controller.) | |||||||||||||||||||
UpdateModel``1(UMP, String) | Updates the specified model instance using values from the controller's current value provider and a prefix. (Inherited from Controller.) | |||||||||||||||||||
UpdateModel``1(UMP, String) | Updates the specified model instance using values from the controller object's current value provider. (Inherited from Controller.) | |||||||||||||||||||
UpdateModel``1(UMP, IValueProvider) | Updates the specified model instance using values from the value provider. (Inherited from Controller.) | |||||||||||||||||||
UpdateModel``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.) | |||||||||||||||||||
UpdateModel``1(UMP, String, IValueProvider) | Updates the specified model instance using values from the value provider and a prefix. (Inherited from Controller.) | |||||||||||||||||||
UpdateModel``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.) | |||||||||||||||||||
UpdateModel``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.) | |||||||||||||||||||
UpdateModel``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.) | |||||||||||||||||||
UpdateModel``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.) | |||||||||||||||||||
ValidateModel(Object) | Validates the specified model instance. (Inherited from Controller.) | |||||||||||||||||||
ValidateModel(Object, String) | Validates the specified model instance using an HTML prefix. (Inherited from Controller.) | |||||||||||||||||||
View | Creates a ViewResult object that renders a view to the response. (Inherited from Controller.) | |||||||||||||||||||
View(Object) | Creates a ViewResult object by using the model that renders a view to the response. (Inherited from Controller.) | |||||||||||||||||||
View(String) | Creates a ViewResult object by using the view name that renders a view. (Inherited from Controller.) | |||||||||||||||||||
View(IView) | Creates a ViewResult object that renders the specified IView object. (Inherited from Controller.) | |||||||||||||||||||
View(String, String) | Creates a ViewResult object using the view name and master-page name that renders a view to the response. (Inherited from Controller.) | |||||||||||||||||||
View(String, Object) | Creates a ViewResult object by using the view name and model that renders a view to the response. (Inherited from Controller.) | |||||||||||||||||||
View(IView, Object) | Creates a ViewResult object that renders the specified IView object. (Inherited from Controller.) | |||||||||||||||||||
View(String, String, Object) | Creates a ViewResult object using the view name, master-page name, and model that renders a view. (Inherited from Controller.) |
Name | Description | |
---|---|---|
CreateAppActionAfterInsert |
Triggered by view Create submit Save
| |
IndexAppActionDelete |
Triggered by view Index submit Delete
|
Name | Description | |
---|---|---|
System#Web#Mvc#Async#IAsyncController#BeginExecute | Initializes a new instance of the System#Web#Mvc#Async#IAsyncController#BeginExecute(RequestContext, AsyncCallback, Object) class. (Inherited from Controller.) | |
System#Web#Mvc#Async#IAsyncController#EndExecute | Ends the execute task. (Inherited from Controller.) | |
System#Web#Mvc#IController#Execute | Executes the specified request context. (Inherited from ControllerBase.) | |
System#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.) | |
System#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.) | |
System#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.) | |
System#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.) | |
System#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.) | |
System#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.) |
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). |
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(); } } }