public virtual async Task<ActionResult> Reject(RejectEmailVerification command, string emailAddress) { //System.Threading.Thread.Sleep(new Random().Next(5000, 5001)); if (command == null || string.IsNullOrWhiteSpace(emailAddress)) return View(MVC.Errors.Views.BadRequest); if (ModelState.IsValid) { await _commands.Execute(command); } var message = string.Format("The email address confirmation for **{0}** was rejected.", emailAddress); TempData.Alerts(message, AlertFlavor.Success, true); Session.VerifyEmailTickets(null); return this.RedirectToLocal(await MVC.UserEmails.Index()); }
public virtual async Task <ActionResult> Reject(RejectEmailVerification command, string emailAddress) { //System.Threading.Thread.Sleep(new Random().Next(5000, 5001)); if (command == null || string.IsNullOrWhiteSpace(emailAddress)) { return(View(MVC.Errors.Views.BadRequest)); } if (ModelState.IsValid) { await _commands.Execute(command); } var message = string.Format("The email address confirmation for **{0}** was rejected.", emailAddress); TempData.Alerts(message, AlertFlavor.Success, true); Session.VerifyEmailTickets(null); return(this.RedirectToLocal(await MVC.UserEmails.Index())); }