C# Class MusicStore.Controllers.ShoppingCartController

Inheritance: Microsoft.AspNetCore.Mvc.Controller
Datei anzeigen Open project: ivaylokenov/MyTested.AspNetCore.Mvc Class Usage Examples

Public Methods

Method Description
AddToCart ( int id, CancellationToken requestAborted ) : Task
Index ( ) : Task
ShoppingCartController ( MusicStore.Models.MusicStoreContext dbContext, ILogger logger ) : System.Linq

Private Methods

Method Description
RemoveFromCart ( int id, CancellationToken requestAborted ) : Task

Method Details

AddToCart() public method

public AddToCart ( int id, CancellationToken requestAborted ) : Task
id int
requestAborted System.Threading.CancellationToken
return Task

Index() public method

public Index ( ) : Task
return Task

ShoppingCartController() public method

public ShoppingCartController ( MusicStore.Models.MusicStoreContext dbContext, ILogger logger ) : System.Linq
dbContext MusicStore.Models.MusicStoreContext
logger ILogger
return System.Linq