// GET: Player/Edit/5
 public async Task<ActionResult> Edit(int id)
 {
     PlayerModel playerModel = new PlayerModel();
     playerModel.Player = await apiService.GetAsync<Player>(baseRoute + id);
     playerModel.Teams = await apiService.GetAsync<List<Team>>("api/team/");
     playerModel.SetupList(playerModel.Player, playerModel.Teams);
     return View("Edit", playerModel);
 }
 public async void Test_You_Can_Get_Players_from_view_model()
 {
     WebApiService apiService = new WebApiService();
     var player = await apiService.GetAsync<Player>("api/player/" + 1);
     PlayerModel pm = new PlayerModel();
     pm.Player = player;
     Assert.IsNotNull(pm.Player);
     Assert.AreEqual(player.Id, pm.Player.Id);
     Assert.AreEqual(player.Teams[0].Id, pm.Player.Teams[0].Id);
 }