Created
February 23, 2020 08:52
-
-
Save pereiren/2dfeaa136a48d12e80043e50ad4a606b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CartController : ApiController | |
{ | |
private readonly ICartService _cartService; | |
public CartController(ICartService cartService) | |
{ | |
_cartService = cartService; | |
} | |
[HttpPost] | |
public Response<CheckOutResultDto> Checkout(Guid customerId) | |
{ | |
Response<CheckOutResultDto> response = new Response<CheckOutResultDto>(); | |
try | |
{ | |
response.Object = _cartService.CheckOut(customerId); | |
} | |
// .... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment