C# 클래스 SampleWebApp.Controllers.PostsAsyncController

상속: Controller
파일 보기 프로젝트 열기: JonPSmith/SampleMvcWebApp

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Create ( DetailPostDtoAsync dto, ICreateServiceAsync service ) : Task
Edit ( DetailPostDtoAsync dto, IUpdateServiceAsync service ) : Task
GetNumPostsAsync ( SampleWebAppDb db ) : Task

메소드 상세

CodeView() 공개 메소드

public CodeView ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

Create() 공개 메소드

public Create ( ICreateSetupServiceAsync setupService ) : Task
setupService ICreateSetupServiceAsync
리턴 Task

Delay() 공개 메소드

public Delay ( ) : Task
리턴 Task

Delete() 공개 메소드

public Delete ( int id, IDeleteServiceAsync service ) : Task
id int
service IDeleteServiceAsync
리턴 Task

Details() 공개 메소드

public Details ( int id, IDetailServiceAsync service ) : Task
id int
service IDetailServiceAsync
리턴 Task

Edit() 공개 메소드

public Edit ( int id, IUpdateSetupServiceAsync service ) : Task
id int
service IUpdateSetupServiceAsync
리턴 Task

Index() 공개 메소드

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
리턴 Task

NumPosts() 공개 메소드

public NumPosts ( SampleWebAppDb db ) : Task
db DataLayer.DataClasses.SampleWebAppDb
리턴 Task

Reset() 공개 메소드

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