C# Class Agathas.Storefront.Ui.Web.Controllers.BasketController

Inheritance: Controller
Show file Open project: elbandit/Asp-Net-Design-Patterns-CQRS Class Usage Examples

Public Methods

Method Description
BasketController ( Api application, QueryService query_service, IClientStorage client_storage ) : System
Index ( ) : System.Web.Mvc.ActionResult
handle_domain_exception ( System action ) : void

Private Methods

Method Description
Add ( int productid ) : System.Web.Mvc.ActionResult
ApplyVoucher ( string voucher_code ) : System.Web.Mvc.ActionResult
Remove ( int product_id ) : System.Web.Mvc.ActionResult
RemoveVoucher ( string voucher_code ) : System.Web.Mvc.ActionResult
display_to_user ( Agathas.Storefront.Infrastructure.DomainException domain_exception ) : void
get_basket_id ( ) : System.Guid

Method Details

BasketController() public method

public BasketController ( Api application, QueryService query_service, IClientStorage client_storage ) : System
application Api
query_service QueryService
client_storage IClientStorage
return System

Index() public method

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

handle_domain_exception() public method

public handle_domain_exception ( System action ) : void
action System
return void