public async Task <bool> EditPlayer(Guid id, FullPlayerDTO playerDTO) { var entity = await _playersRepository.GetPlayerAsync(id); if (entity == null) { return(false); } else { await _playersRepository.Update(Mapper.UpdatePlayerFromDTO(entity, playerDTO)); return(true); } }