I'm trying to pass an array of objects ( models ) to http post request but my API controller throws an error: Could not find a value in the reques ...
I'm trying to pass an array of objects ( models ) to http post request but my API controller throws an error: Could not find a value in the reques ...
I have an ASP.Net Core 2.1 application. Below is my DTO Tickets (Base Class) TicketsSpecial (Child/Derived Class) WebAPI Controller Postm ...
Having a simple .NET Core API with your models posted as JSON in request body, how to have [FromBody] attribute applied to all controller methods? ...
I have the following Custom Model Binder: The problem I have with this code is that I am doing all the initialization of HtmlSanitizer in the model ...
I have a 3rd party app making POST submissions to my site with application/json in the body. I can capture a strongly typed object as: public str ...
We are using custom model binders, how to disable model binding for one action method, so that i can directly post data from angular http post request ...
I'm working on a .NET core web API application, where I want the URL routing values into Model/FromBody parameter. If the routing property is exist in ...
I have has an issue trying to get jquery validation to accept a uk formatted date for a while now, basically when I add @Scripts.Render("~/bundles/jqu ...
Currently I've got this ModelBinder that works just fine: As you can see I'm mapping the whole bindingContext.Model, but what I really want to do i ...
this is my ajax call: And this is my controller action: actual data returned by tableData: "ItemType=Type1&Unit=select&Quantity=12& ...
Have the method below in my model: But previously it was a property like this: Upon accessing the page, the entire model is populated with data ...
So, my code seems to be compiling without errors when it should not compile. Here, this project has no NuGet packages for AspNetCore.Mvc and hence th ...
I have asp.net MVC web application. It is the list of some entities where a user could pick up some of them and views details and so on. Most of the ...
I need to filter all strings in my project to prevent XSS attacks. I decided to do it by using global model binder. Below you can see model binder reg ...
I am new in MVC. I have a view that contains many dropdowns and viewmodel with many lists. Most of these lists are static so I want to cache retrived ...
I need to bind model from request and convert to my custom object, my request data is json and method is post. This is my method in web api: My pr ...
I have similar objects (I'm using Model and ViewModels, where ViewModels has same properties as Model object). When I'm editing one item, I put edito ...
When i use simle model and pass in view example a copy of the model-everything worked well. in controller in view the value of the list selecte ...
Upon the creation of a new item, when posting information from a form back to the controller, it says that no parameter-less constructor could be foun ...
I have enum with assigned string values (in attributes) and would like to have html helper for displaying it. Unfortunately I need to use assigned val ...