public IActionResult CreatePayment(int id) { var model = packagePlanService.GetPackagePlanById(id); if (model != null) { Payment payment = _PaypalServices.CreatePayment(id, model.Price, model.PackageName, URL_ExecutePayment, URL_Cancel, "sale"); return(new JsonResult(payment)); } else { return(RedirectToAction("Index", "BuySubscription")); } }
public IActionResult SignUp(int id = 0) { if (id > 0) { var result = packagePlanService.GetPackagePlanById(id); if (result != null) { ViewBag.PackageID = id; var model = businessService.CreateViewModel(0); return(View(model)); } else { return(RedirectToAction("", "Home")); } } else { return(RedirectToAction("", "Home")); } }