have a problem with my CRUD process, how can i solve it?
i was doing an MVC project, about budget, using user, transactions, account, account type, operation type and category, those are my tables in sql, the problem is that i was doing the CRUD on the transaction controller, i was doing the create.cshtml to see if a new transaction is created, but have an error on the creation,i left two images []
ASP.NET MVC controller method receives an empty instance of object instead of the null value, why?
I have – formally expressed – an IActionResult Index(object? obj) controller method in a MVC project. If I call it by the main menu from the web frontend without any route values, it is generating an empty object of the input parameter instead of the null value, but why?
What is the Index method inside of a controller?
I’m following this tutorial on how to develop unit tests using xUnit for .Net application. On this video he is developing tests on a controller and there is a method called Index inside this controller, and the way he speaks of this method makes it look like it is a common practice to have one method with that name in a controller.
In .net core 8 mvc c# project, I want to redirect the visitor to index or index2 according to the site he came from
If the visitor comes to my site from x.com, I want him to go to the index1 page, if he comes from other sites or directly, he should be directed to the index page, I tried a few examples and I could not succeed.
How can give in Model class property automatically filled up hyphen after 3 digits in phone number validation
I have a model class called PhoneNumber.cs as view model and it is being used as globally for entering the phone number. How can I restrict the user to enter 10 numeric digits only without any special character or alphabets. Also after 3 digits , it should be automatically filled up ‘-‘ when the phone number entered by the user.