using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ion.Storage; namespace Holo.Managers { public static class staffManager { public static void addStaffMessage(string Action, int userID, int targetID, string Message, string Note) { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.AddParamWithValue("action", Action); dbClient.AddParamWithValue("userid", userID); dbClient.AddParamWithValue("targetid", targetID); dbClient.AddParamWithValue("message", Message); dbClient.AddParamWithValue("note", Note); dbClient.AddParamWithValue("time", DateTime.Now.ToString()); dbClient.runQuery("INSERT INTO system_stafflog (action,userid,targetid,message,note,timestamp) VALUES (@action, @userid, @targetid, @message, @note, @time)"); } } } }