score:3
There are probably better ways to do it, but one way is to use an object[] parameter like this:
[HttpGet("[action]")]
public string GET(object[] objects)
{
string param1 = objects[0] as string;
string param2 = objects[1] as string;
try
{
var url = BuildUri(param1, param2);
}
}
Also you should not use try blocks without catch blocks. I hope this helps
Source: stackoverflow.com
Related Query
- Reading Axios Get params in Asp.Net MVC controller
- Send nested objects in GET method URL search params in Axios
- axios get params does not inherit the params in create
- Axios Node.Js GET request with params is undefined
- how to pass string params in Get call of API using axios in Reactjs
- Boolean params in Axios get request automatically getting converted to string in server side
- how to write one GET api call using axios instance with and without params in React JS
- How to get user input passed to params in axios get
- Axios get in url works but with second parameter as object it doesn't
- Axios posting params not read by $_POST
- Get path params in react-router v4
- How to get params in component in react router dom v4?
- Default query params not getting passed in axios request
- How to show progress of Axios during get request (not download or upload)
- In ReactJS trying to get params but I get property 'id' does not exist on type '{}'
- How to get params in parent route component
- Cancel axios get request when typing reactjs
- React - on form submit get POST params
- Axios is caching somehow my get user request react native
- How to send body data and headers with axios get request?
- Why is my axios get call repeating over and over using React.useEffect to fetch from Rails backend?
- Why can't I get query params in ```getStaticProps```?
- Get url params inside a Redux middleware using React-router
- How do I access data returned from an axios get to display on a web page using react js?
- Get axios Response object when error occurred with Redux Saga
- User authentication with ASP MVC and React
- How can I use an axios get call inside a Context provider in react
- What is the best way to make multiple get request with axios in a loop?
- React and Axios GET request issue with Safari on MacOs and iOs
- Axios can not GET json data from another localhost
More Query from same tag
- React method return value won't show in render()
- In my code I got undefined while function returns true
- How to get coordinates of current mouse click in leaflet react js
- Create an embeddable widget using React
- Connecting Slate to Formik - is it useField?
- Unable to pass prop into dict in react
- React Router - Nesting routes does not seem to work
- Is it possible to pass parameters from react Route tag to Navigate tag?
- How to render an audio file from an API in React
- Promise not being executed in Jest test
- Getting a value of inputs populated Dynamically React.js
- Next.js: how to go to parent page from current child page?
- Is there a way to import modules in React without create-react-app?
- React: Warning: Each child in a list should have a unique "key" prop
- start with the default state upon rendering the component for the first time ! where no mood has been selected yet
- Converting Array to Object so that ID always stays the same - React.js
- How to render a table with blueprintjs/table
- In React / Redux, how to call the same fetch twice in componentDidMount, setting 2 state variables with results
- Render React components from array
- Meteor React Uncaught ReferenceError: Peer is not defined
- react-select typescript issue - Generic type 'ValueType' requires 2 type argument(s).ts(2314)
- React app crashed when trying to submit with empty input field
- React doing a summation of checked checkbox item's prices
- Material Table: How to get the row data on Button click? (Not on row selection)
- Filter array with checkbox and input react
- How to pass an array of id's to delete using an endpoint rather than just one Id
- Array value appended instead of new value list display in React
- Hot to fix the edit function on React JS?
- React: Can't type into certain input fields on mobile
- Howto: Owner rendered in ownee react