Esempio n. 1
0
 public IActionResult Complete(ShippingDetail shippingDetail)
 {
     if (!ModelState.IsValid)//dataannotationa göre geçerli mi değil mi
     {
         return(View());
     }
     TempData.Add("message", "Siparişiniz başarıyla tamamlandı");
     _cartSessionHelper.Clear();
     return(RedirectToAction("Index", "Cart"));
 }
Esempio n. 2
0
 public IActionResult Complete(ShippingDetail shippingDetail)
 {
     if (!ModelState.IsValid)
     {
         return(View());
     }
     TempData.Add("message", "Siparişiniz başarıyla tamamlandı!");
     _cartSessionHelper.Clear();
     return(RedirectToAction("Index", controllerName: "Cart"));
 }
 public IActionResult Complete(ShippingDetail shippingDetail)
 {
     if (!ModelState.IsValid)
     {
         return(View());
     }
     ShowInlineMessage("Sipiraşiniz başarı ile teslim edildi.", MessageType.Success);
     _cartSessionHelper.Clear();
     return(RedirectToAction("Index", "Cart"));
 }
Esempio n. 4
0
 public IActionResult Complete(ShippingDetail shippingDetail)
 {
     if (!ModelState.IsValid)
     {
         return(View());
     }
     TempData.Add("message", "Your order has been successfully completed");
     _cartSessionHelper.Clear();
     return(RedirectToAction("Index", "Cart"));
 }
        public IActionResult Complete(ShippingDetail shippingDetail)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }

            TempData.Add("message", "Siparişiniz alındı!");
            _cartSessionHelper.Clear();
            return(RedirectToAction("Index", "Product"));
        }
Esempio n. 6
0
        public IActionResult Complete(ShippingDetail shippingDetail)
        {
            if (ModelState.IsValid)
            {
                return(View());
            }


            TempData.Add("message", "Your order is accepted");
            _cartSessionHelper.Clear();
            return(RedirectToAction("Index", "Home"));
        }
Esempio n. 7
0
        public IActionResult CheckOut(Order order)
        {
            var cart = _cartSessionHelper.GetCart(CartController.CartKey);

            order.OrderTotal = cart.TotalPrice;
            if (ModelState.IsValid)
            {
                _orderService.TransactionalOperation(order, cart);
                _cartSessionHelper.Clear();
                return(RedirectToAction("CheckOutComplete"));
            }
            return(View(order));
        }
 public IActionResult Complete(ShippingDetail shippingDetail)
 {
     TempData.Add("message", "Siparişiniz başarıyla tamamlandı");
     _cartSessionHelper.Clear();
     return(RedirectToAction("Index", "Cart"));
 }