while creating list for both tables user and user address I m getting the below error for both the tables
Code Description Project File Line Suppression State Error CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<nsroute.DataAccess.UserAddress>' to 'System.Collections.Generic.List<nsroute.UserAddress>'
controller:
- public ActionResult Dashboard()
- {
- nsrouteEntities obj = new nsrouteEntities();
- List<User> userlist = obj.Users.ToList();
- List<UserAddress> useraddresslist = obj.UserAddresses.ToList();
- getting error in this bold text
- return View();
- }
can anyone tell me on how to display data from multiple tables in a single table of a view in mvc5