public string CreateSlug(string title) { string slug = title.Replace(" ", "-"); int count = 0; string tempSlug = slug; while (_dataStore.CheckSlugExists(tempSlug)) { count++; tempSlug = $"{slug}-{count}"; } return(tempSlug); }