Beispiel #1
0
 public IActionResult Reg(RegVM vm)
 {
     if (!ModelState.IsValid)
     {
         return(PartialView(vm));
     }
     else
     {
         var rv = vm.DoReg();
         if (rv == true)
         {
             return(FFResult().CloseDialog().Message(Localizer["Reg.Success"]));
         }
         else
         {
             return(PartialView(vm));
         }
     }
 }
Beispiel #2
0
 public IActionResult Reg(RegVM vm)
 {
     if (!ModelState.IsValid)
     {
         return(PartialView(vm));
     }
     else
     {
         var rv = vm.DoReg();
         if (rv == true)
         {
             return(FFResult().CloseDialog().Alert("注册成功"));
         }
         else
         {
             return(PartialView(vm));
         }
     }
 }