I need to pass Name = XXX to a method that already contains a {YY} parameter.
So I am trying to combine
[HttpPut(Name = "SomeFunc")]
public bool SomeFunc()
{
return true;
}
and
[HttpPut("{abc}")]
public bool SomeFunc(string abc)
{
return true;
}
So that I have something like this
[HttpPut(Name = "SomeFunc")("{abc}")]
public bool SomeFunc(string abc)
{
return true;
}
But I can't quite find the correct syntax to do so. How do you combine parameters like this?
It's a bit unclear what you are asking. Is this what you want?