I have a requirement to create a Get method which takes the following parameter names in the URL:
ms-scale
ms-contrast
ms-lang
As you can see, all the names have a dash in them which is not possible in C#. How can I map my method to these parameter names?
public HttpResponseMessage Get(int scale, string contrast string lang)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…