Example #1
0
        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}");
            }
        }