private static void _AddGuildLedger(LogData logData) { try { HeroesLogDataContext heroesLogDataContext = new HeroesLogDataContext(); heroesLogDataContext.AddGuildLedger(new long?(logData.GuildSN), new long?(logData.CID), new short?((short)logData.Operation), new short?(logData.Event), logData.Arg1, logData.Arg2); } catch (Exception ex) { Log <GuildEntity> .Logger.Error(string.Format("Error while Saving Logs.]", new object[0]), ex); } }
public void AddGuildStorageLedger(long CID, GuildStorageOperationCode opCode, GuildStorageEventCode eventCode, string itemClassEX, int amount, int color1, int color2, int color3, int reduceDurability, int maxDurabilityBonus) { try { HeroesLogDataContext heroesLogDataContext = new HeroesLogDataContext(); heroesLogDataContext.AddGuildStorageLedger(new long?((long)this.Parent.GuildSN), new long?(CID), new short?((short)((byte)opCode)), new short?((short)((byte)eventCode)), itemClassEX, new int?(amount), new int?(color1), new int?(color2), new int?(color3), new int?(reduceDurability), new int?(maxDurabilityBonus)); } catch (Exception ex) { Log <GuildStorageManager> .Logger.Error(ex); } }