Example #1
0
 public async Task <ActionResult> DecreaseInStock([FromBody] List <CartDto> carts)
 {
     foreach (var c in carts)
     {
         await ticketManager.DecreaseInStockByOneAsync(c.TicketId, c.Amount);
     }
     return(Ok());
 }