I was wondering if someone could help me. I have 2 classes:
`public class EventPutDto
{
//public string id { get; set; }
public string eventGbsCode { get; set; }
//public string portfolioId { get; set; }
public string businessUnitId { get; set; }
public List<Multilingual> multilingual { get; set; }
public bool supportedInPlatform { get; set; }
public bool gbsEnabled { get; set; }
public bool isParticipationEvent { get; set; }
}`
public class Multilingual
{
public string locale { get; set; }
public string name { get; set; }
}
I want to add a name and locale to the list property in the eventPutDto class. How do I do it? For example I want to add 3 locales so it should be something like
"en-gb" - "english name",
"it-it" - "italian name",
"es-es" - "spanish name"
I need to know this as I'm trying to post some Json to an endpoint.