Beispiel #1
0
        public ActionResult <Player> Get(int id)
        {
            var player = _playerBusiness.GetPlayer(id);

            if (player != null)
            {
                return(player);
            }
            return(NotFound());
        }
        public IActionResult Index()
        {
            var countryList = icountryBusiness.GetCountries();

            ViewBag.CountryId = new SelectList(countryList, "CountryId", "CountryName");

            var         Id    = Convert.ToInt32(User.Claims.ToArray()[2].Value);
            PlayerModel model = iplayerBusiness.GetPlayer(Id);

            return(View(model));
        }