public async Task <IActionResult> SendPasswordResetMessage([FromBody] SendPasswordResetMessageInputModel model)
 {
     if (ModelState.IsValid)
     {
         return((await _authenticateOrchestrator.SendPasswordResetMessageAsync(model)).ToJsonResult());
     }
     return(new ActionResponse(ModelState).ToJsonResult());
 }
        public async Task <ActionResult> ForgotPassword(SendPasswordResetMessageInputModel model, string leaveBlank)
        {
            if (leaveBlank != null)
            {
                ViewBag.Message = "You appear to be a spambot";
            }
            else if (ModelState.IsValid)
            {
                var response = await _authenticateOrchestrator.SendPasswordResetMessageAsync(model);

                ViewBag.Message = response.Message;
            }
            return(View(model));
        }