Beispiel #1
0
        private async Task <Boolean> Edit(Guid playerId, Decimal handicap)
        {
            Player player = _playerAccessLayer.GetPlayer(playerId);

            player.Handicap = handicap;
            player.Modified = DateTime.Now;
            return(await _playerAccessLayer.UpdatePlayer(player));
        }
Beispiel #2
0
 public IActionResult Details(Guid PlayerId)
 {
     try
     {
         return(Ok(_playerAccessLayer.GetPlayer(PlayerId)));
     }
     catch
     {
         return(BadRequest());
     }
 }