public virtual ActionResult Post(ForgotPasswordForm model)
{
if (model == null) return HttpNotFound();
if (!ModelState.IsValid) return View(model);
// execute command
var command = Mapper.Map<SendConfirmEmailMessageCommand>(model);
command.SendFromUrl = Url.Action(MVC.Identity.ForgotPassword.Get());
_services.CommandHandler.Handle(command);
// flash feedback message
SetFeedbackMessage(string.Format(SuccessMessageFormat, model.EmailAddress));
// redirect to confirm email
return RedirectToRoute(new
{
area = MVC.Identity.Name,
controller = MVC.Identity.ConfirmEmail.Name,
action = MVC.Identity.ConfirmEmail.ActionNames.Get,
token = command.ConfirmationToken,
});
}