namespace ShareeBike.Repository.Request { public static class QueryBuilderHelper { /// /// Gets the htlm query string element for session id. /// /// Query string. public static string GetSessionIdQueryElement( string op, string merchantId, string sessionCookie = null) => !string.IsNullOrEmpty(merchantId) || !string.IsNullOrEmpty(sessionCookie) ? $"{op}sessionid={(!string.IsNullOrEmpty(sessionCookie) ? sessionCookie : string.Empty)}{(!string.IsNullOrEmpty(merchantId) ? merchantId : string.Empty)}" : string.Empty; /// /// Gets the htlm query string element for the language. /// /// Two letter ISO language name. /// Query string. public static string GetLanguageQueryElement(string op, string uiIsoLangugageName) => !string.IsNullOrEmpty(uiIsoLangugageName) ? $"{op}lang={uiIsoLangugageName}" : string.Empty; } }