IntroductionBasically that's type of error occurs due to null value. But i have already try to pass some value, manually in the controller function. Always i get this error. Ok let's start to story of the error. I want to get the record from single department table and that's name is hyperlinked. Now, When i click to any hyperlink then open respective employee details, which is stored in another table. What i was done. First i was write the code for retrieving the value from single data base table, on that time, my code run successfully. But in Next time when i wrote the code for retrieving the record from two database table, on that time, i got the error.
What steps i have taken
- First step to prepare classes for employee and department
- Second step to create a context for both class
- third step to prepare a controller for department, as well as prepare view for department
- forth step to prepare controller for employee, as well as prepare view for employee.