public async Task <IActionResult> SignUp(User user, UserDetail userDetail) { await _userRepository.AddAsync(user); userDetail.UserId = user.UserId; await _detailRepository.AddAsync(userDetail); return(RedirectToAction("SignIn", "Account")); }
public async Task <IActionResult> SignUp(User user, UserDetail userDetail) { await _userRepository.AddAsync(user); userDetail.UserId = user.UserId; await _detailRepository.AddAsync(userDetail); return(RedirectToAction("SignIn", "Account")); }