C# Class SampleWebApp.Controllers.BlogsController

This is an example of a Controller using GenericServices database commands directly to the data class (other that List, which needs a DTO) In this case we are using normal, non-async commands
Inheritance: Controller
Datei anzeigen Open project: JonPSmith/SampleMvcWebApp

Public Methods

Method Description
Create ( ) : System.Web.Mvc.ActionResult
Delete ( int id, IDeleteService service ) : System.Web.Mvc.ActionResult
Edit ( int id, IUpdateSetupService service ) : System.Web.Mvc.ActionResult
Index ( IListService service ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Create ( Blog blog, ICreateService service ) : System.Web.Mvc.ActionResult
Edit ( Blog blog, IUpdateService service ) : System.Web.Mvc.ActionResult

Method Details

Create() public method

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

Delete() public method

public Delete ( int id, IDeleteService service ) : System.Web.Mvc.ActionResult
id int
service IDeleteService
return System.Web.Mvc.ActionResult

Edit() public method

public Edit ( int id, IUpdateSetupService service ) : System.Web.Mvc.ActionResult
id int
service IUpdateSetupService
return System.Web.Mvc.ActionResult

Index() public method

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