I try to separate a list in Razor by ","
but I don't want the ","
at the end. I try to use String.join
but nothing is happening.
This is my code:
@foreach (Language language in Model.apiAgent.languages)
{
@(string.Join(",", language.language));
}
it is still shows as
EnglishSpanish