public async Task <ActionResult> ResendActivationCode(string emailAddress) { return(await Task.Run(() => { if (_candidateServiceProvider.ResendActivationCode(emailAddress)) { SetUserMessage(string.Format(ActivationPageMessages.ActivationCodeSent, emailAddress)); return RedirectToRoute(RouteNames.Activation); } SetUserMessage(ActivationPageMessages.ActivationCodeSendingFailure, UserMessageLevel.Warning); return RedirectToRoute(RouteNames.Activation); })); }