public int AddLogAction(ulong user, ulong moderator, Log.LogAction action, string reason = null, TimeSpan?length = null) { var id = LogActions.Any() ? LogActions.Max(x => x.CaseId) + 1 : 1; var newAction = new Log(user, moderator, action, id, reason, length); LogActions.Add(newAction); return(id); }
public void AddLogAction(string action) { LogActions.Add(new LogAction { ActionData = action }); }