/// <summary> /// 注册 /// </summary> /// <returns></returns> public async Task <IActionResult> Register(RegisterInputDto registerInputDto) { var id = _getId.GetId(EntityType.Account); var result = await _accountApplication.CreatedAccount(id, registerInputDto.AccountName, registerInputDto.Password, registerInputDto.PhoneNumber); if (result.Success) { return(RedirectToAction("Index", "Home")); } return(RedirectToAction("Index", "Error")); }