I am trying to convert a sql request to a lambda expression but I only know how to do it with a where statement. This is my request :
SELECT     Projet.ProjetId, Projet.Libelle, UtilisateurInProjet.UtilisateurId
FROM         Projet INNER JOIN
                      UtilisateurInProjet ON Projet.ProjetId = UtilisateurInProjet.ProjetId
WHERE     (UtilisateurInProjet.UtilisateurId = @UtilisateurId)
and @UtilisateurId would be the selected value from the DropDownList in the view.
In my controller, I have this code :
  public JsonResult GetProjsName(int id)
    {
        db.Configuration.ProxyCreationEnabled = false;
        List<Projet> liprojs = db.Projets.Where(x => x.ProjetId == id).ToList();
        return Json(liprojs, JsonRequestBehavior.AllowGet);
    }
and "id" is the selected value from the DropDownList in the view. Thank you
 
     
     
    