C# Class Rebel.Cms.Web.Editors.DataTypeEditorController

Inheritance: StandardEditorController
显示文件 Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
DataTypeEditorController ( IBackOfficeRequestContext requestContext ) : System
Edit ( HiveId id ) : System.Web.Mvc.ActionResult

Action to render the editor

Protected Methods

Method Description
ProcessSubmit ( DataTypeEditorModel model, AttributeType entity ) : System.Web.Mvc.ActionResult

Processes the submit for insert/update

Private Methods

Method Description
Create ( System.Guid propertyEditorId, string name ) : System.Web.Mvc.ActionResult
CreateForm ( ) : System.Web.Mvc.ActionResult
CreateNew ( ) : System.Web.Mvc.ActionResult
CreateNewForm ( CreateDataTypeModel createModel ) : System.Web.Mvc.ActionResult
Delete ( HiveId id ) : System.Web.Mvc.JsonResult
EditForm ( HiveId id ) : System.Web.Mvc.ActionResult
EnsurePropEditorListViewBagData ( ) : void

This adds some required elements to the ViewBag so that the Create view renders correctly

Method Details

DataTypeEditorController() public method

public DataTypeEditorController ( IBackOfficeRequestContext requestContext ) : System
requestContext IBackOfficeRequestContext
return System

Edit() public method

Action to render the editor
public Edit ( HiveId id ) : System.Web.Mvc.ActionResult
id HiveId
return System.Web.Mvc.ActionResult

ProcessSubmit() protected method

Processes the submit for insert/update
protected ProcessSubmit ( DataTypeEditorModel model, AttributeType entity ) : System.Web.Mvc.ActionResult
model Rebel.Cms.Web.Model.BackOffice.Editors.DataTypeEditorModel
entity AttributeType
return System.Web.Mvc.ActionResult