public async Task <HashResponseModel> HashAsync(HashRequestModel model) { var success = _requestValidation.ValidateLoginRequest(model, out string message); if (success) { var response = await _funcService.Hash(model); return(response); } else { throw new ProcessException($"Invalid request: {message}"); } }