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