Esempio n. 1
0
 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"));
     }
 }
Esempio n. 2
0
        public ActionResult Get(int id)
        {
            var model = businessService.CreateViewModel(id);

            return(PartialView("_form", model));
        }