/// <inheritdoc /> public async Task <bool> SendEmailRegistrAsync(string email) { IUrlHelper _url = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); var token = await _authService.AddRoleAndTokenAsync(email); var user = await _userManager.FindByEmailAsync(email); var confirmationLink = _url.Action("confirmingEmail", "Auth", new { token, userId = user.Id }, _contextAccessor.HttpContext.Request.Scheme); user.EmailSendedOnRegister = DateTime.Now; var emailContent = _emailContentService.GetAuthRegisterEmail(confirmationLink); return(await _emailSendingService.SendEmailAsync(email, emailContent.Subject, emailContent.Message, emailContent.Title)); }