Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IEnumerable<Telephone_Search.Models.tbl_users> users;
- public IEnumerable<Telephone__Search.Models.tbl_pics> images;
- public IEnumerable<Telephone__Search.Models.tbl_locations> branches;
- public ActionResult Index()
- {
- var users = from a in db.tbl_users
- where a.userid == 6
- select a;
- var branchjoin = (from e in db.users
- join c in db.tbl_locations on e.address equals c.location
- where e.userid == 6 && e.emp_address == c.location
- select c).ToArray();
- return this.View(new ViewModel
- {
- branches = branchjoin // Error here
- users = users,
- });
- }
Add Comment
Please, Sign In to add comment