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)); }
private ActionResult PaymentPlaceholder(RecipeDrugAfterPaymentViewModel model) { Session["RecipeDrug"] = model.RecipeDrug; return(View("PaymentPlaceholder", model)); }