Nfield.Services.Implementation.NfieldSurveyResponseCodesService.SurveyResponseCodeUrl C# (CSharp) Method

SurveyResponseCodeUrl() private method

Constructs and returns the url for survey response code based on supplied surveyId and code
private SurveyResponseCodeUrl ( string surveyId, int code ) : string
surveyId string
code int
return string
        private string SurveyResponseCodeUrl(string surveyId, int? code)
        {
            var result = new StringBuilder(ConnectionClient.NfieldServerUri.AbsoluteUri);
            result.AppendFormat(CultureInfo.InvariantCulture, @"Surveys/{0}/ResponseCodes/{1}", surveyId,
                code.HasValue ? code.Value.ToString(CultureInfo.InvariantCulture) : "");

            return result.ToString();
        }