public IActionResult EsqueciSenha([FromBody] Usuario user) { if (!string.IsNullOrEmpty(user.userName)) { user = _usuarioService.GetByUserName(user.userName); } else if (!string.IsNullOrEmpty(user.email)) { user = _usuarioService.GetByEmail(user.email); } _autenticacaoService.EsqueciMinhaSenha(user); return(new NoContentResult()); }