GuardianZ
Unable to calculate/store correct value to the db
it does I think, but realised in the mean time I am being completely dumb as usual. I haven't invoked the method anywhere or on any action, so I decided to call the method when I hit the submit button on the form. The idea is that it saves the form data to the db and then invokes the method to perform calculation on it but now I am getting a completely new unhandled exception which I don't understand at the moment, but working on it:
this is my main controller code for submitting the form now:
It seems the current issue might be that I am injecting controller with my method into another controller, instead of having a service for this?
Edit: I haven't registered my service in Program.cs file, all good now! 🙂
4 replies