public GenericTestResult CompareVerificationCode(string emailAddress, int verificationCodeToCheck)
        {
            GenericTestResult httpResponse = new GenericTestResult();

            httpResponse.Date = DateTime.Now;
            int statusCode = (int)HttpStatusCode.OK;

            httpResponse.Operation = "Client request for a verification code check";
            bool test = SessionHelpers.CompareVerificationCode(emailAddress, verificationCodeToCheck);

            if (!test)
            {
                httpResponse.Message = "The code is wrong.";
            }
            else
            {
                httpResponse.Message = "The code is ok.";
            }
            httpResponse.BoolResult = test;
            this.HttpContext.Response.StatusCode = statusCode;
            httpResponse.StatusCode = statusCode;
            return(httpResponse);
        }