public Password GenerateOneTimePassword([FromBody] Member member) { if (string.IsNullOrWhiteSpace(member.MemberId)) { throw new Exception("Invalid member Id"); } var oneTimePassword = _passwordHandler.GenerateOneTimePassword(member, DateTime.Now.AddSeconds(30)); return(oneTimePassword); }