Esempio n. 1
0
        public async Task <ActionResult> Detail(int id)
        {
            var service  = new ServiceReference2.PersonWcfServiceClient();
            var personer = await service.GetAllePersonerAsync();

            return(View(personer[id]));
        }
Esempio n. 2
0
 //public IActionResult Index()
 //{
 //    return View();
 //}
 public async Task<ActionResult> Index()
 {
     var service = new ServiceReference2.PersonWcfServiceClient();
     var personer = await service.GetAllePersonerAsync();
     return View(personer);
 }