private string GetJobSearchPublicUrl(JobSearch j, bool includePublicCode = true) { return(ConfigurationManager.AppSettings["CommonJobs/PublicSiteUrl"].AppendIfDoesNotEndWith("/") + ConfigurationManager.AppSettings["CommonJobs/PublicSitePostulantBaseUrl"].AppendIfDoesNotEndWith("/") + RavenSession.ExtractNumericIdentityPart(j).ToString().AppendIfDoesNotEndWith("/") + ((string.IsNullOrEmpty(j.PublicCode) || !includePublicCode) ? string.Empty : j.PublicCode )); }