When I update the the make of the vehicle on IndexMakeList page and delete the vehicle on IndexModel page I get the following errors respectively, though when I go back the pages vehicle has been updated or deleted
I get the NullReferenceException: Object reference not set to an instance of an object. AspNetCore.Views_Make_IndexMakeList.ExecuteAsync() in IndexMakeList.cshtml, line 30
An unhandled exception occurred while processing the request. NullReferenceException: Object reference not set to an instance of an object. AspNetCore.Views_Model_IndexModel.ExecuteAsync() in IndexModel.cshtml, line 39
I did the toggle breakpoints and what I understand is that after updating/deleting it goes back to the indexlistpage and loops through the list and tries to find the same id and where it gets the NullReferenceException. I know there are articles on this and I have read them but I am still failing to rectify this problem.I am not sure where the problem could be and which specific code to paste , so I am providing the github link for the project This is the github link for my project: https://github.com/life-traveler/Vroom/tree/master/Vroom. Thank you!!