Example #1
0
        public ActionResult PayTheBill(string orderId)
        {
            var ord = DatAcessService.FindOrder(Convert.ToInt32(orderId));

            ord.Status = "Payed";
            DatAcessService.CreateOrder(ord);
            return(View(LiqPayHelper.GetLiqPayModel(orderId)));
        }
        public ActionResult EditStatus(int id)
        {
            OrderDTO order = DatAcessService.FindOrder(id);

            if (order == null)
            {
                return(HttpNotFound());
            }
            return(View(order));
        }