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)); } } }
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)); } } }