public ActionResult GetvacList() { IStructuredetailRepository repo = new StructuredetailRepository(); IDepartmentRepository objrepo = new DepartmentRepository(); var Data = (from u in repo.Get() join a in objrepo.GetAll() on u.DepartmentId equals a.DepartmentId join b in repo.Getpos() on u.PositionId equals b.Id select new { a.DepartmentName, b.Position, u.Availableseats, u.Id, }).ToList(); return(Json(new { data = Data }, JsonRequestBehavior.AllowGet)); }