Beispiel #1
0
        public async Task <bool> AddPlayerPunishmentAsync(PlayerPunishmentRecord playerPunishmentRecord)
        {
            playerPunishmentRecord.Id = Guid.NewGuid();
            await repository.CreateAsync(playerPunishmentRecord);

            return(await repository.SaveChangesAsync() > 0);
        }
Beispiel #2
0
 public async Task <bool> UpdatePlayerPunishmentAsync(PlayerPunishmentRecord playerPunishmentRecord)
 {
     repository.Update(playerPunishmentRecord);
     return(await repository.SaveChangesAsync() > 0);
 }