public IResult ForgotPassword(string userEmail) { var userResult = _userService.GetByMail(userEmail); if (userResult == null) { return(new ErrorResult(Message.UserNotFound)); } _emailService.Send("Kiralamax Parola Sıfırlama", $"Parolanızı aşağıdaki bağlantıya tıklayarak " + "sıfırlayabilirsiniz. \n <a target='_black' href='http://localhost:4200/resetpassword/" + $"{userResult.Email}/{userResult.ActivationCode}'>Parolamı Sıfırla</a>", userResult.Email); return(new SuccessResult(Message.PasswordResetMailSend)); }
public void ProcessMessage(IHandlerContext <RegisterMemberCommand> context) { Console.WriteLine(); Console.WriteLine("[MEMBER REGISTERED] : user name = '{0}'", context.Message.UserName); Console.WriteLine(); _emailService.Send(context.Message.UserName); }
protected override void OnAfter(IInvocation invocation) { if (_stopwatch.Elapsed.TotalSeconds > _interval) { Debug.WriteLine($"Performance : {invocation.Method.DeclaringType.FullName}.{invocation.Method.Name} --------> {_stopwatch.Elapsed.TotalSeconds}"); _mailService.Send("CarRentAl Performance Issue Dedected", $"Performance : {invocation.Method.DeclaringType.FullName}.{invocation.Method.Name} --------> {_stopwatch.Elapsed.TotalSeconds}", null); } _stopwatch.Reset(); }