Skip to content

Commit

Permalink
[#227] [add] params pass & display
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed Dec 10, 2023
1 parent e9151cf commit 7e5d24e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ namespace SampleApp.Api.Controllers.v1;
[Get("api/v1/different-route-parameters/{StringParam}/{IntParam:int}/{BoolParam:bool}/{StringArrayParam:string[]}")]
public class DifferentRouteParametersController : Controllerv2
{
public ControllerResponse Invoke(string stringParam) =>
Content($"String param: {stringParam}");
public ControllerResponse Invoke(string stringParam, int intParam, bool boolParam, string[] stringArrayParam) =>
Content($@"
String param: {stringParam}
Integer param: {intParam}
bool param: {boolParam},
String array param: {stringArrayParam}");
}

0 comments on commit 7e5d24e

Please sign in to comment.