Ejemplo n.º 1
0
        public ActionResult YeniAdres()
        {
            var kisiler = _kisiService.GetAll();
            List <SelectListItem> kisilerList = (from p in kisiler
                                                 select new SelectListItem()
            {
                Text = p.Ad + " " + p.Soyad,
                Value = p.ID.ToString()
            }).ToList();

            ViewBag.kisiler = kisilerList;
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult HomePage()
        {
            HomeViewModel model = new HomeViewModel {
                Kisiler = _kisiService.GetAll().ToList(), Adresler = _adresService.GetAll().ToList()
            };

            return(View(model));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> Index()
        {
            var result = await k.GetAll();

            return(View(result));
        }