C# Class DBPOLLDemo.Controllers.SysAdminController

Inheritance: Controller
Exibir arquivo Open project: Marknel/dbPOLL

Public Methods

Method Description
DeleteConfirm ( int UserID ) : System.Web.Mvc.ActionResult
DeleteSuccess ( int UserID ) : System.Web.Mvc.ActionResult
Edit ( int UserID ) : System.Web.Mvc.ActionResult

Redirects to Edit view to allow modification of User's details.

Index ( ) : System.Web.Mvc.ActionResult
RegisterUser ( ) : System.Web.Mvc.ActionResult

Returns the view with a choice between creating a short answer and multiple choice question.

RegisterUserSuccess ( ) : System.Web.Mvc.ActionResult

Returns the view with a choice between creating a short answer and multiple choice question.

SysAdmin ( ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Edit ( int UserID, string expiry, string name, string email ) : System.Web.Mvc.ActionResult
RegisterUser ( String name, String email, string expiry ) : System.Web.Mvc.ActionResult

Method Details

DeleteConfirm() public method

public DeleteConfirm ( int UserID ) : System.Web.Mvc.ActionResult
UserID int
return System.Web.Mvc.ActionResult

DeleteSuccess() public method

public DeleteSuccess ( int UserID ) : System.Web.Mvc.ActionResult
UserID int
return System.Web.Mvc.ActionResult

Edit() public method

Redirects to Edit view to allow modification of User's details.
public Edit ( int UserID ) : System.Web.Mvc.ActionResult
UserID int User to be edited
return System.Web.Mvc.ActionResult

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

RegisterUser() public method

Returns the view with a choice between creating a short answer and multiple choice question.
public RegisterUser ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

RegisterUserSuccess() public method

Returns the view with a choice between creating a short answer and multiple choice question.
public RegisterUserSuccess ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

SysAdmin() public method

public SysAdmin ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult