Пример #1
0
        public ActionResult Payment(RecipeDrugPaymentViewModel model)
        {
            model.RecipeDrug = _recipeDrugService.Get(model.RecipeDrug.ID);

            var m = new RecipeDrugAfterPaymentViewModel
            {
                PaymentType = model.PaymentType,
                RecipeDrug  = model.RecipeDrug
            };

            if (model.PaymentType.ToLower().Equals("ondelivery"))
            {
                model.RecipeDrug.Status = OrderStatusEnum.OnDelivery;
                return(View("Success"));
            }
            return(PaymentPlaceholder(m));
        }
Пример #2
0
 private ActionResult PaymentPlaceholder(RecipeDrugAfterPaymentViewModel model)
 {
     Session["RecipeDrug"] = model.RecipeDrug;
     return(View("PaymentPlaceholder", model));
 }