Ejemplo n.º 1
0
        public async void GenerateLink(string email, int empId, string personalEmail)
        {
            PasswordReset passReset;

            passReset = _passwordResetService.GetObjUsingOfficialEmail(email);
            _passwordResetService.Remove(passReset);
            await _unitOfWork.Complete();

            //_passwordResetService.Update(passReset); We do not need this line because while generating a new email, a new record is entered
            _passwordResetService.GenerateAndSendEmail(personalEmail, email);
        }
 public PasswordReset GetObjOnEmpId(string userEmail)
 {
     return(_reset.GetObjUsingOfficialEmail(userEmail));
 }