public string RequestReset(string email, int passwordExpireInDays) { var theUser = _userService.GetUser(email); if (theUser == null) { throw new ApplicationException("User with the email does not exist"); } return(_passwordResetService.CreatePasswordResetForUser(theUser.Id, passwordExpireInDays).Key); }