C# Class IssueTracker.Controllers.StatesController

Inheritance: Controller
ファイルを表示 Open project: radike/issue-tracker

Public Methods

Method Description
Create ( ) : System.Web.Mvc.ActionResult
Delete ( System.Guid id ) : System.Web.Mvc.ActionResult
Details ( System.Guid id ) : System.Web.Mvc.ActionResult
Edit ( System.Guid id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
StatesController ( IStateRepository stateRepository, IStateService stateService ) : System
UpdateOrder ( System.Guid id, int fromPosition, int toPosition, string direction ) : void

Updates reordering of the states in States/Index table.

Private Methods

Method Description
Create ( [ Include = "Id,Title,Colour,IsInitial")]StateViewModelviewModel ) : System.Web.Mvc.ActionResult
DeleteConfirmed ( System.Guid id ) : System.Web.Mvc.ActionResult
Edit ( [ Include = "Id,Title,Colour,IsInitial,OrderIndex")]StateViewModelviewModel ) : System.Web.Mvc.ActionResult
removeInitialState ( System.Guid id ) : void

Removes IsInitial flag on each state in database except one.

Method Details

Create() public method

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

Delete() public method

public Delete ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

Details() public method

public Details ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

Edit() public method

public Edit ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

Index() public method

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

StatesController() public method

public StatesController ( IStateRepository stateRepository, IStateService stateService ) : System
stateRepository IStateRepository
stateService IStateService
return System

UpdateOrder() public method

Updates reordering of the states in States/Index table.
public UpdateOrder ( System.Guid id, int fromPosition, int toPosition, string direction ) : void
id System.Guid Id of the state
fromPosition int Initial position of the state
toPosition int New position of the state
direction string Back or forward direction
return void