public async Task <bool> AddPlayerActivityAsync(PlayerActivityRecord playerActivityRecord) { playerActivityRecord.Id = Guid.NewGuid(); await repository.CreateAsync(playerActivityRecord); return(await repository.SaveChangesAsync() > 0); }
public async Task <bool> UpdatePlayerActivityAsync(PlayerActivityRecord playerActivityRecord) { repository.Update(playerActivityRecord); return(await repository.SaveChangesAsync() > 0); }