메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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.
|
public Delete ( System.Guid id ) : System.Web.Mvc.ActionResult | ||
id | System.Guid | |
리턴 | System.Web.Mvc.ActionResult |
public Details ( System.Guid id ) : System.Web.Mvc.ActionResult | ||
id | System.Guid | |
리턴 | System.Web.Mvc.ActionResult |
public Edit ( System.Guid id ) : System.Web.Mvc.ActionResult | ||
id | System.Guid | |
리턴 | System.Web.Mvc.ActionResult |
public StatesController ( IStateRepository stateRepository, IStateService stateService ) : System | ||
stateRepository | IStateRepository | |
stateService | IStateService | |
리턴 | System |
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 |
리턴 | void |