//[Route("Get")] public IActionResult Get() { List <Modeles.UserWithAdress> list = _utRepo.Get().Select(x => x.DalToApiUserWithAdress()).ToList(); foreach (Modeles.UserWithAdress user in list) { user.Adresse = _adRepo.GetById(user.AdresseID); } return(Ok(list)); }
public IEnumerable <B_Utilisateur> Get() { return(ur.Get().Select(u => u.ToBuisnessUtilisateur())); }
public ActionResult Index() { return(View(_repo.Get())); }