How can I give custom validation attribute for the model property
I have a three column ScheduleDate,RegistrationDate, SalesTargetHrs for the CustomerSales modal.How can I validate ScheduleDate must be greater than SalesTargetHrs and RegistrationDate. For example Registration Date is ‘2024-07-24 11:23:45’ and SalesTargetHrs is 72 hrs , then the ScheduleDate should be greater than that of the date of RegistrationDate after adding SalesTargetHrs. How can I show custom validation attribute and error message ‘Scheduled greater than expected targeted Date’
How do I return JSON in ASP.NET Core 8 MVC Controller Method?
The following does not return a response. I get the same result if I change Ok() to Created(). If I change it to BadResponse() it returns JSON as expected. What am I doing wrong?
ASP.Net Core MVC : compilation errors. How to solve them?
After developing a few ASP.Net Core MVC sites with sorting and searching, that work quite OK, when coming to pagination I met some errors that I did not understand, so I thought working on the demo application would be a good idea.
Well, I get the same errors there: strange, is not it?
I imagine that if there were errors in the demo application that would be well known and quickly corrected, the other hypothesis is an error on my machine.
I hope somebody is able to situate the error, to avoid me the pain of completely reinstalling my machine, which for sure would take … some time, at least.