Example #1
0
        public static void Log(string actionDone, string applicationUserID)
        {
            LoggedAction action = new LoggedAction {
                ActionDone = actionDone, ApplicationUserID = applicationUserID
            };
            LoggedActionController newThing = new LoggedActionController();

            newThing.LogToDB(action);
        }
Example #2
0
 private void LogToDB(LoggedAction action)
 {
     db.LoggedActions.Add(action);
     db.SaveChanges();
 }