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.
|
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.
|
public Create ( ) : System.Web.Mvc.ActionResult | ||
return | System.Web.Mvc.ActionResult |
public Delete ( System.Guid id ) : System.Web.Mvc.ActionResult | ||
id | System.Guid | |
return | System.Web.Mvc.ActionResult |
public Details ( System.Guid id ) : System.Web.Mvc.ActionResult | ||
id | System.Guid | |
return | System.Web.Mvc.ActionResult |
public Edit ( System.Guid id ) : System.Web.Mvc.ActionResult | ||
id | System.Guid | |
return | System.Web.Mvc.ActionResult |
public Index ( ) : System.Web.Mvc.ActionResult | ||
return | System.Web.Mvc.ActionResult |
public StatesController ( IStateRepository stateRepository, IStateService stateService ) : System | ||
stateRepository | IStateRepository | |
stateService | IStateService | |
return | 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 |
return | void |