public static void Log(string actionDone, string applicationUserID) { LoggedAction action = new LoggedAction { ActionDone = actionDone, ApplicationUserID = applicationUserID }; LoggedActionController newThing = new LoggedActionController(); newThing.LogToDB(action); }
private void LogToDB(LoggedAction action) { db.LoggedActions.Add(action); db.SaveChanges(); }