C# Class SampleWebApp.Controllers.PostsAsyncController

Inheritance: Controller
Show file Open project: JonPSmith/SampleMvcWebApp

Public Methods

Method Description
CodeView ( ) : System.Web.Mvc.ActionResult
Create ( ICreateSetupServiceAsync setupService ) : Task
Delay ( ) : Task
Delete ( int id, IDeleteServiceAsync service ) : Task
Details ( int id, IDetailServiceAsync service ) : Task
Edit ( int id, IUpdateSetupServiceAsync service ) : Task
Index ( IListService service ) : Task

This is an example of a Controller using GenericServices database commands with a DTO. In this case we are using async commands

NumPosts ( SampleWebAppDb db ) : Task
Reset ( SampleWebAppDb db ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Create ( DetailPostDtoAsync dto, ICreateServiceAsync service ) : Task
Edit ( DetailPostDtoAsync dto, IUpdateServiceAsync service ) : Task
GetNumPostsAsync ( SampleWebAppDb db ) : Task

Method Details

CodeView() public method

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

Create() public method

public Create ( ICreateSetupServiceAsync setupService ) : Task
setupService ICreateSetupServiceAsync
return Task

Delay() public method

public Delay ( ) : Task
return Task

Delete() public method

public Delete ( int id, IDeleteServiceAsync service ) : Task
id int
service IDeleteServiceAsync
return Task

Details() public method

public Details ( int id, IDetailServiceAsync service ) : Task
id int
service IDetailServiceAsync
return Task

Edit() public method

public Edit ( int id, IUpdateSetupServiceAsync service ) : Task
id int
service IUpdateSetupServiceAsync
return Task

Index() public method

This is an example of a Controller using GenericServices database commands with a DTO. In this case we are using async commands
public Index ( IListService service ) : Task
service IListService
return Task

NumPosts() public method

public NumPosts ( SampleWebAppDb db ) : Task
db DataLayer.DataClasses.SampleWebAppDb
return Task

Reset() public method

public Reset ( SampleWebAppDb db ) : System.Web.Mvc.ActionResult
db DataLayer.DataClasses.SampleWebAppDb
return System.Web.Mvc.ActionResult