public IActionResult ChangePW() { try { string result = Encoding.ASCII.GetString(Convert.FromBase64String(HttpContext.Request.Query["pwId"].ToString())); string[] splits = result.Split(new char[] { '-' }); string email = splits[0]; string code = splits[1]; AccountView accountView = accountRepository.CompareCodeChangePW(email, code); if (accountView != null) { return(View(accountView)); } } catch { } return(RedirectToAction("accessDenied")); }