public async Task <AccountResponse> RequestEmailConfirmation(string userName, string url) { var recipientUser = await _accountProvider.Find(userName); string emailConfirmationToken = await _accountProvider.GenerateEmailConfirmationToken(recipientUser.Id); var callback = string.Format("{0}{1}/{2}?userId={3}&code={4}", url, "Account", "ConfirmEmail", recipientUser.Id, UtilityHelper.EncodeUrlCode(emailConfirmationToken)); IProcessEmail processEmail = new ProcessEmail(userName); processEmail.SendEmailConfirmationEmail(recipientUser, callback); return(new AccountResponse { Success = true, }); }