// Controllers/CheckoutController.cs using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace CheckoutExample.Controllers { [ApiController] [Route("api/[controller]")] public class CheckoutController : ControllerBase { [HttpGet] public IActionResult Get(string products, string coupon) { // Parse products var productQuantities = new Dictionary(); if (!string.IsNullOrEmpty(products)) { foreach (var entry in products.Split(',')) { var parts = entry.Split(':'); if (parts.Length == 2) { if (int.TryParse(parts[1], out int quantity)) { productQuantities.Add(parts[0], quantity); } } } } // Build response var response = new { Products = productQuantities, Coupon = coupon ?? "No coupon applied" }; return Ok(response); } } }
  • Lieferung nach Hause

Kategorie: Featured (Seite 1 von 12)

Fernsehen „besser hören“

In entspannter Atmosphäre präsentieren wir Funklautsprecher, Sprachverstärker und eine neue Soundbar-Generation, die allesamt speziell darauf ausgelegt sind, Sprache klar und natürlich wiederzugeben, ohne auf räumliche Klangwirkung zu verzichten. Ziel ist kein „lauterer“, sondern ein besser verständlicher Ton – angepasst an typische Wohnräume und reale Sehgewohnheiten.

Arrow right icon Group Created with Sketch.