C# Class Microsoft.eShopWeb.Web.Services.BasketViewModelService

Inheritance: IBasketViewModelService
Show file Open project: TheDukeDK/devsecops-demo

Public Methods

Method Description
BasketViewModelService ( IAsyncRepository basketRepository, IAsyncRepository itemRepository, IUriComposer uriComposer ) : Microsoft.eShopWeb.ApplicationCore.Entities
GetOrCreateBasketForUser ( string userName ) : Task

Private Methods

Method Description
CreateBasketForUser ( string userId ) : Task
CreateViewModelFromBasket ( Basket basket ) : Task
GetBasketItems ( IReadOnlyCollection basketItems ) : Task>

Method Details

BasketViewModelService() public method

public BasketViewModelService ( IAsyncRepository basketRepository, IAsyncRepository itemRepository, IUriComposer uriComposer ) : Microsoft.eShopWeb.ApplicationCore.Entities
basketRepository IAsyncRepository
itemRepository IAsyncRepository
uriComposer IUriComposer
return Microsoft.eShopWeb.ApplicationCore.Entities

GetOrCreateBasketForUser() public method

public GetOrCreateBasketForUser ( string userName ) : Task
userName string
return Task