Guest User

Untitled

a guest
Nov 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public IEnumerable<Telephone_Search.Models.tbl_users> users;
  2. public IEnumerable<Telephone__Search.Models.tbl_pics> images;
  3. public IEnumerable<Telephone__Search.Models.tbl_locations> branches;
  4.  
  5. public ActionResult Index()
  6. {
  7. var users = from a in db.tbl_users
  8. where a.userid == 6
  9. select a;
  10.  
  11. var branchjoin = (from e in db.users
  12. join c in db.tbl_locations on e.address equals c.location
  13. where e.userid == 6 && e.emp_address == c.location
  14. select c).ToArray();
  15.  
  16. return this.View(new ViewModel
  17. {
  18. branches = branchjoin // Error here
  19. users = users,
  20. });
  21. }
Add Comment
Please, Sign In to add comment