/// <summary> /// Processes the email verification view. /// </summary> /// <param name="processingMessage">The processing message.</param> /// <returns></returns> public IEmailVerificationView ProcessEmailVerificationView(string processingMessage) { var view = new EmailVerificationView { ProcessingMessage = processingMessage }; return(view); }
public IEmailVerificationView CreateForgetPasswordView(string processingMessage) { var view = new EmailVerificationView { ProcessingMessage = processingMessage }; return(view); }
public ActionResult ForgetPassword(EmailVerificationView emailVerification) { if (emailVerification == null) { throw new ArgumentNullException("emailVerification"); } var processingMessage = string.Empty; // check if entries are valid based on definations in RegistrationView model if (!this.ModelState.IsValid) { return(this.View("ForgetPassword")); } processingMessage = this.accountService.ProcessForgetPassword(emailVerification.Email); var viewModel = this.accountService.GetForgetPasswordView(processingMessage); // call service in domain to process Registration information return(View("ForgetPassword", viewModel)); }