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

            return(View(personer[id]));
        }
Ejemplo 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);
 }