示例#1
0
 public ActionResult Create(string errMsg)
 {
     if (Session["UserID"] != null)
     {
         ViewBag.SubCode     = GenerateSubsidiaryCode();
         ViewBag.Items       = GetSubInfo();
         ViewBag.SubType     = new SelectList(_subsidiaryTypeAppService.All().ToList(), "TypeCode", "SubType");
         ViewBag.CountryCode = LoadDropDown.LoadCountryDDL();
         ViewBag.SubGrp      = LoadDropDown.LoadSubGrpDDL();
         ViewBag.errMsg      = errMsg;
         return(View());
     }
     else
     {
         return(RedirectToAction("SecUserLogin", "SecUserLogin"));
     }
 }