public IActionResult RestorePassword(string token) { var mail = api.GetEmailByToken(Guid.Parse(token)); if (mail == String.Empty) { RedirectToAction("Register"); } var model = new ModifyPasswordViewModel() { mail = mail }; return View(model); }