C# Class GoogleCloudSamples.Controllers.BooksController

Inheritance: Controller
显示文件 Open project: GoogleCloudPlatform/getting-started-dotnet

Public Methods

Method Description
BooksController ( IBookStore store, ImageUploader imageUploader ) : GoogleCloudSamples.Models
BooksController ( IBookStore store, ImageUploader imageUploader, BookDetailLookup bookDetailLookup ) : GoogleCloudSamples.Models
BooksController ( IBookStore store ) : System.Web.Mvc
Create ( ) : System.Web.Mvc.ActionResult
Details ( long id ) : System.Web.Mvc.ActionResult
Edit ( long id ) : System.Web.Mvc.ActionResult
Index ( string nextPageToken ) : System.Web.Mvc.ActionResult
Mine ( string nextPageToken ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Create ( Book book ) : System.Web.Mvc.ActionResult
Create ( Book book, System.Web.HttpPostedFileBase image ) : Task
Delete ( long id ) : System.Web.Mvc.ActionResult
Delete ( long id ) : Task
Edit ( Book book, long id ) : System.Web.Mvc.ActionResult
Edit ( Book book, long id, System.Web.HttpPostedFileBase image ) : Task
ViewForm ( string action, string formAction, Book book = null ) : System.Web.Mvc.ActionResult

Dispays the common form used for the Edit and Create pages.

Method Details

BooksController() public method

public BooksController ( IBookStore store, ImageUploader imageUploader ) : GoogleCloudSamples.Models
store IBookStore
imageUploader GoogleCloudSamples.Services.ImageUploader
return GoogleCloudSamples.Models

BooksController() public method

public BooksController ( IBookStore store, ImageUploader imageUploader, BookDetailLookup bookDetailLookup ) : GoogleCloudSamples.Models
store IBookStore
imageUploader GoogleCloudSamples.Services.ImageUploader
bookDetailLookup GoogleCloudSamples.Services.BookDetailLookup
return GoogleCloudSamples.Models

BooksController() public method

public BooksController ( IBookStore store ) : System.Web.Mvc
store IBookStore
return System.Web.Mvc

Create() public method

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

Details() public method

public Details ( long id ) : System.Web.Mvc.ActionResult
id long
return System.Web.Mvc.ActionResult

Edit() public method

public Edit ( long id ) : System.Web.Mvc.ActionResult
id long
return System.Web.Mvc.ActionResult

Index() public method

public Index ( string nextPageToken ) : System.Web.Mvc.ActionResult
nextPageToken string
return System.Web.Mvc.ActionResult

Mine() public method

public Mine ( string nextPageToken ) : System.Web.Mvc.ActionResult
nextPageToken string
return System.Web.Mvc.ActionResult