示例#1
0
        //[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));
        }
示例#2
0
 public IEnumerable <B_Utilisateur> Get()
 {
     return(ur.Get().Select(u => u.ToBuisnessUtilisateur()));
 }
 public ActionResult Index()
 {
     return(View(_repo.Get()));
 }