static public void Handle_CS_ChatCommand(CS_ChatCommand <Zone> pkt, Zone zone) { using (Data.InfantryDataContext db = zone._server.getContext()) { Data.DB.helpcall help = new Data.DB.helpcall(); help.sender = pkt.sender; help.zone = pkt.zone; help.arena = pkt.arena; help.reason = pkt.reason; help.date = DateTime.Now; db.helpcalls.InsertOnSubmit(help); db.SubmitChanges(); } }
static public void Handle_CS_ModCommand(CS_ModCommand <Zone> pkt, Zone zone) { using (Data.InfantryDataContext db = zone._server.getContext()) { Data.DB.history hist = new Data.DB.history(); hist.sender = pkt.sender; hist.recipient = pkt.recipient; hist.zone = pkt.zone; hist.arena = pkt.arena; hist.command = pkt.command; hist.date = DateTime.Now; db.histories.InsertOnSubmit(hist); db.SubmitChanges(); } }