“Illegal characters in path.” only when viewing from mobile browser
I’m using a traditional WebAPI controller:
I’m using a traditional WebAPI controller:
“The ModelState represents a collection of name and value pairs that were submitted to the server during a POST.” That is the best definition I have found for the ModelState property. So I have some code using a web api that Creates a customer and Updates a customer, and my question is, since I have accessed ModelState in CreateCustomer, wont the ModelState always be not valid if I hadnt already submitted a Post request with CreateCustomer? Or is the ModelState updated with both PUT and Post requests? Because according to the definition above, the ModelState property wont be initialized until I create a customer, and in my UpdateCustomer method, I need to check if the customer object given in the parameters is the one that is valid, not any Model that was submitted to the server during a different POST request.
i created a new project from visual studio 2019 of type web api
i want my endpoint like that /api/products.json but it not work
I’m trying to catch errors coming from one of my controllers. Elmah is not catching them so in trying to find out why, I reduced the problem to the simplest form which excludes Elmah.
I need to implement DI in my Web API Project. I’m using a Ninject and got a little problem.
I’m using Visual Studio 2019, WebApi project, .NET Core 3.1
I’m working on a webapi project using .netcore.
Dear all i have the following controller,
I am looking for a way to implement authorization to my web app, only certain users should be able to access sensitive parts of the app. I will use windows authentication, the users that are added to the web config will be eligible to access the app, the user management part will only be visible to authorized users.