Answer the question
In order to leave comments, you need to log in
How to capitalize JSON field names in ASP Net core?
I have a class:
class Step
{
public int idStep { get; set; }
public string StepName { get; set; }
public int GlassCount { get; set; }
public bool isCutting { get; set; }
public bool isShpt { get; set; }
}
public List<Step> GetSteps()
{
return new StepList().GetSteps();
}
//public List<Step> GetSteps()
[
{
"idStep": 23,
"stepName": "Раскрой",
"glassCount": 0,
"isCutting": true,
"isShpt": false
},
{
"idStep": 24,
"stepName": "Кромщик",
"glassCount": 0,
"isCutting": false,
"isShpt": false
}
]
public class Step
{
public int idStep { get; set; }
public string stepName { get; set; }
public int glassCount { get; set; }
public bool isCutting { get; set; }
public bool isShpt { get; set; }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question