public async Task <bool> AddPlayerPunishmentAsync(PlayerPunishmentRecord playerPunishmentRecord) { playerPunishmentRecord.Id = Guid.NewGuid(); await repository.CreateAsync(playerPunishmentRecord); return(await repository.SaveChangesAsync() > 0); }
public async Task <bool> UpdatePlayerPunishmentAsync(PlayerPunishmentRecord playerPunishmentRecord) { repository.Update(playerPunishmentRecord); return(await repository.SaveChangesAsync() > 0); }